diff --git a/src/components/content/Container/Container.tsx b/src/components/content/Container/Container.tsx index 075927d..b2d1449 100644 --- a/src/components/content/Container/Container.tsx +++ b/src/components/content/Container/Container.tsx @@ -34,6 +34,10 @@ function ContainerSvg({ 'body-colour': bodyColour, label, }: ContainerSvgAttributes) { + if (!name || (name as string) === 'undefined') { + return null; + } + const cssVariables = { '--lid-colour': lidColour ?? 'transparent', '--body-colour': bodyColour,