From 7bdcfc7681fdeeeefbbeea266c78f7b17dcad05f Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Fri, 26 Sep 2025 10:51:19 +0000 Subject: [PATCH] Merged in feat/book-396-validationerror (pull request #2871) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(BOOK-396): city page validation error * feat(BOOK-396): city page validation error * feat(BOOK-396): city page validation error Approved-by: Erik Tiekstra Approved-by: Joakim Jäderberg --- apps/scandic-web/components/Blocks/index.tsx | 1 + .../components/ContentType/DestinationPage/Blocks/index.tsx | 1 + apps/scandic-web/components/Webviews/LoyaltyPage/Blocks.tsx | 1 + .../trpc/lib/routers/contentstack/schemas/blocks/content.ts | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/Blocks/index.tsx b/apps/scandic-web/components/Blocks/index.tsx index 24adb047b..4c53b1dfd 100644 --- a/apps/scandic-web/components/Blocks/index.tsx +++ b/apps/scandic-web/components/Blocks/index.tsx @@ -39,6 +39,7 @@ export default function Blocks({ blocks }: BlocksProps) { /> ) case BlocksEnums.block.Content: + if (!block.content) return null return ( ) case BlocksEnums.block.Content: + if (!block.content) return null return ( ) case BlocksEnums.block.Content: + if (!block.content) return null return ( { - return data.content + return data?.content }), })