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({
web: z
.object({
breadcrumbs: z.object({
title: z.string(),
parentsConnection: z.object({
edges: z.array(
z.object({
node: z.object({
system: z.object({
content_type_uid: z.string(),
uid: z.string(),
breadcrumbs: z
.object({
title: z.string(),
parentsConnection: z.object({
edges: z.array(
z.object({
node: z.object({
system: z.object({
content_type_uid: z.string(),
uid: z.string(),
}),
}),
}),
})
),
}),
}),
})
),
}),
})
.optional(),
})
.optional(),
system: z.object({