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({
|
.object({
|
||||||
hotel_navigation: z
|
hotel_navigation: z
|
||||||
.object({
|
.object({
|
||||||
overview: z.string().optional(),
|
overview: z.string().nullish(),
|
||||||
rooms: z.string().optional(),
|
rooms: z.string().nullish(),
|
||||||
restaurant_bar: z.string().optional(),
|
restaurant_bar: z.string().nullish(),
|
||||||
conferences_meetings: z.string().optional(),
|
conferences_meetings: z.string().nullish(),
|
||||||
health_wellness: z.string().optional(),
|
health_wellness: z.string().nullish(),
|
||||||
activities: z.string().optional(),
|
activities: z.string().nullish(),
|
||||||
offers: z.string().optional(),
|
offers: z.string().nullish(),
|
||||||
faq: z.string().optional(),
|
faq: z.string().nullish(),
|
||||||
})
|
})
|
||||||
.nullable(),
|
.nullish(),
|
||||||
content: discriminatedUnionArray(contentBlock.options)
|
content: discriminatedUnionArray(contentBlock.options)
|
||||||
.nullable()
|
.nullable()
|
||||||
.transform((data) => {
|
.transform((data) => {
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ export enum HotelHashValues {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Tabs = {
|
type Tabs = {
|
||||||
overview?: string
|
overview?: string | null
|
||||||
rooms?: string
|
rooms?: string | null
|
||||||
restaurant_bar?: string
|
restaurant_bar?: string | null
|
||||||
conferences_meetings?: string
|
conferences_meetings?: string | null
|
||||||
health_wellness?: string
|
health_wellness?: string | null
|
||||||
activities?: string
|
activities?: string | null
|
||||||
offers?: string
|
offers?: string | null
|
||||||
faq?: string
|
faq?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TabNavigationProps = {
|
export type TabNavigationProps = {
|
||||||
|
|||||||
Reference in New Issue
Block a user