From e0fbc4abd8cca87af4b6013303570462ffc658db Mon Sep 17 00:00:00 2001 From: Malin J Date: Tue, 18 Jun 2024 14:38:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8D=EF=B8=8F=20Add=20check=20for=20emp?= =?UTF-8?q?ty=20title=20#2358=20(#2366)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../topicPages/Accordion/AccordionBlock.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web/pageComponents/topicPages/Accordion/AccordionBlock.tsx b/web/pageComponents/topicPages/Accordion/AccordionBlock.tsx index a95d1bb8e..7e1ee7a1b 100644 --- a/web/pageComponents/topicPages/Accordion/AccordionBlock.tsx +++ b/web/pageComponents/topicPages/Accordion/AccordionBlock.tsx @@ -53,13 +53,14 @@ const AccordionBlock = ({ data, anchor, className }: AccordionBlockProps) => { )} - {Array.isArray(title) ? ( - - ) : ( - - {title} - - )} + {title && + (Array.isArray(title) ? ( + + ) : ( + + {title} + + ))} {ingress && } {accordion && accordion.length > 0 && (