From 992d24c753950239d87b9982f76e410c1e1a9ae8 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Thu, 27 Mar 2025 08:12:56 +0000 Subject: [PATCH] Merged in fix/SW-2061-handle-zero-length (pull request #1648) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix/SW-2061-handle-zero-length * fix(SW-2061): avoid render a zero when no images Approved-by: Christian Andolf Approved-by: Erik Tiekstra Approved-by: Matilda Landström --- .../ContentType/DestinationPage/DestinationCityPage/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx index 6f4f5e23a..32e9b3895 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx @@ -55,9 +55,9 @@ export default async function DestinationCityPage() { variant={PageContentTypeEnum.destinationCityPage} /> - {images?.length && ( + {images?.length ? ( - )} + ) : null}