diff --git a/pages/standards/[serviceName].tsx b/pages/standards/[serviceName].tsx index 89d393b4ae8ccb65a4ab1e089a7e313ad4cbadfc..3cce0700b8dafe2235e6b2b0b3fceab622615955 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 f1438c5c0f301cbed2eb349c11cce710c47ead74..2ff3e3f48303094c7d8ad14759d9dae21b1ac085 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">