fix: properties inside hotel_navigation could be null or undefined

Approved-by: Michael Zetterberg
This commit is contained in:
Erik Tiekstra
2025-04-08 12:33:06 +00:00
parent c069b7cd9d
commit 3f510e9aae
2 changed files with 17 additions and 17 deletions

View File

@@ -40,16 +40,16 @@ export const hotelPageSchema = z.object({
.object({
hotel_navigation: z
.object({
overview: z.string().optional(),
rooms: z.string().optional(),
restaurant_bar: z.string().optional(),
conferences_meetings: z.string().optional(),
health_wellness: z.string().optional(),
activities: z.string().optional(),
offers: z.string().optional(),
faq: z.string().optional(),
overview: z.string().nullish(),
rooms: z.string().nullish(),
restaurant_bar: z.string().nullish(),
conferences_meetings: z.string().nullish(),
health_wellness: z.string().nullish(),
activities: z.string().nullish(),
offers: z.string().nullish(),
faq: z.string().nullish(),
})
.nullable(),
.nullish(),
content: discriminatedUnionArray(contentBlock.options)
.nullable()
.transform((data) => {