From 66ac6d6f959634d2a84a9f203a6b8247e258a92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Voskuhl?= <juergen.voskuhl@itcv-software.com> Date: Wed, 27 Sep 2023 23:10:18 +0200 Subject: [PATCH] Workaround didn't work out --- pages/standards/[serviceName].tsx | 1 + views/it-standards/InfoBoxes.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/standards/[serviceName].tsx b/pages/standards/[serviceName].tsx index 89d393b..3cce070 100644 --- a/pages/standards/[serviceName].tsx +++ b/pages/standards/[serviceName].tsx @@ -71,6 +71,7 @@ export default function ({ contentString }) { }} supportInfo={ [] } artefacts={ [] } + combinedStandards={ [] } // combinedStandards={ content.childResources } lastUpdate={content.dateLastUpdate} /> diff --git a/views/it-standards/InfoBoxes.tsx b/views/it-standards/InfoBoxes.tsx index f1438c5..2ff3e3f 100644 --- a/views/it-standards/InfoBoxes.tsx +++ b/views/it-standards/InfoBoxes.tsx @@ -89,7 +89,7 @@ export function InfoBoxes({ </div> )} - {combinedStandards !== undefined && combinedStandards[0].link != '' && ( + {combinedStandards.length > 0 && combinedStandards[0].link != '' && ( <div className="w-80 border-2 mb-4 rounded-md"> <div className={`${MY_CONSTANTS.BG_COLORS.COMBINED_STANDARDS} p-1 font-bold`}>Verbundene IT-Standards</div> <div className="text-sm p-1"> -- GitLab