diff --git a/components/ContentType/HotelPage/index.tsx b/components/ContentType/HotelPage/index.tsx index abc3b9713..ca1203381 100644 --- a/components/ContentType/HotelPage/index.tsx +++ b/components/ContentType/HotelPage/index.tsx @@ -32,7 +32,7 @@ export default async function HotelPage() { activitiesCard, } = hotelData - MOCK_FACILITIES.push(setActivityCard(activitiesCard)) + activitiesCard && MOCK_FACILITIES.push(setActivityCard(activitiesCard)) return (
diff --git a/server/routers/contentstack/hotelPage/output.ts b/server/routers/contentstack/hotelPage/output.ts index 1002fc80c..c6fed0fc7 100644 --- a/server/routers/contentstack/hotelPage/output.ts +++ b/server/routers/contentstack/hotelPage/output.ts @@ -40,6 +40,7 @@ export const validateHotelPageSchema = z.object({ upcoming_activities_card: activityCardSchema.optional(), }) ) + .nullable() .optional(), }), })