From de86e46c0bb5d7b10eb3c5003e79701ab9a48eae Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Fri, 9 May 2025 12:20:49 +0000 Subject: [PATCH] fix(SW-2690): Added check if link element has href tag before rendering Link component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Approved-by: Michael Zetterberg Approved-by: Matilda Landström --- .../components/ContentType/HotelSubpage/HtmlContent/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/ContentType/HotelSubpage/HtmlContent/index.tsx b/apps/scandic-web/components/ContentType/HotelSubpage/HtmlContent/index.tsx index 360eae16d..a0c931874 100644 --- a/apps/scandic-web/components/ContentType/HotelSubpage/HtmlContent/index.tsx +++ b/apps/scandic-web/components/ContentType/HotelSubpage/HtmlContent/index.tsx @@ -95,7 +95,9 @@ function renderNode(domNode: Node, idx: number) { return
case NodeNames.a: - console.log(domNode.attribs.target) + if (!domNode.attribs.href) { + return null + } return (