From c6f76b83ccdea18f9d9e74a4c719cf78c3f605f2 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Wed, 15 Oct 2025 14:41:26 +0000 Subject: [PATCH] Merged in fix/BOOK-456-destination-city-validation-error (pull request #2975) fix(BOOK-456): Added nullish() to destination pages content and sidepeek content schema to avoid unexpected errors * fix(BOOK-456): Added nullish() to destination pages content and sidepeek content schema to avoid unexpected errors Approved-by: Linus Flood --- .../DestinationPage/Sidepeek/index.tsx | 4 + .../routers/contentstack/contentPage/utils.ts | 2 +- .../destinationCityPage/output.ts | 54 +++++++------ .../contentstack/destinationCityPage/utils.ts | 4 +- .../destinationCountryPage/output.ts | 60 ++++++++------- .../destinationCountryPage/utils.ts | 4 +- .../routers/contentstack/loyaltyPage/utils.ts | 2 +- .../contentstack/promoCampaignPage/utils.ts | 2 +- .../contentstack/schemas/blocks/content.ts | 77 ++++++++++--------- 9 files changed, 114 insertions(+), 95 deletions(-) diff --git a/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx index 6eda9bc0d..81603644b 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx @@ -35,6 +35,10 @@ export default function DestinationPageSidepeek({ trackOpenSidePeekOnDestinationPagesEvent(location) } + if (!content) { + return null + } + return (