fix(SW-438): fix problem with type for quick links

This commit is contained in:
Matilda Landström
2024-10-16 08:50:26 +02:00
parent a5a3bfa857
commit 76063e1757
3 changed files with 14 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import { z } from "zod"
import { shortcutsRefsSchema, shortcutsSchema } from "../blocks/shortcuts"
import { shortcutsBlockSchema, shortcutsRefsSchema } from "../blocks/shortcuts"
import { SidebarEnums } from "@/types/enums/sidebar"
@@ -11,6 +11,6 @@ export const quickLinksSchema = z
.optional()
.default(SidebarEnums.blocks.Shortcuts),
})
.merge(shortcutsSchema)
.merge(shortcutsBlockSchema)
export const quickLinksRefschema = shortcutsRefsSchema