fix: properties inside hotel_navigation could be null or undefined
Approved-by: Michael Zetterberg
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -9,14 +9,14 @@ export enum HotelHashValues {
|
||||
}
|
||||
|
||||
type Tabs = {
|
||||
overview?: string
|
||||
rooms?: string
|
||||
restaurant_bar?: string
|
||||
conferences_meetings?: string
|
||||
health_wellness?: string
|
||||
activities?: string
|
||||
offers?: string
|
||||
faq?: string
|
||||
overview?: string | null
|
||||
rooms?: string | null
|
||||
restaurant_bar?: string | null
|
||||
conferences_meetings?: string | null
|
||||
health_wellness?: string | null
|
||||
activities?: string | null
|
||||
offers?: string | null
|
||||
faq?: string | null
|
||||
}
|
||||
|
||||
export type TabNavigationProps = {
|
||||
|
||||
Reference in New Issue
Block a user