fix: add breadcrumbs as optional

This commit is contained in:
Matilda Landström
2024-06-03 14:27:04 +02:00
parent b8d540aaa1
commit 7c2533ef2f

View File

@@ -15,21 +15,23 @@ const breadcrumbsRefsItems = z.object({
z.object({ z.object({
web: z web: z
.object({ .object({
breadcrumbs: z.object({ breadcrumbs: z
title: z.string(), .object({
parentsConnection: z.object({ title: z.string(),
edges: z.array( parentsConnection: z.object({
z.object({ edges: z.array(
node: z.object({ z.object({
system: z.object({ node: z.object({
content_type_uid: z.string(), system: z.object({
uid: z.string(), content_type_uid: z.string(),
uid: z.string(),
}),
}), }),
}), })
}) ),
), }),
}), })
}), .optional(),
}) })
.optional(), .optional(),
system: z.object({ system: z.object({