diff --git a/src/pages/instances/Pods/components/Badge.tsx b/src/pages/instances/Pods/components/Badge.tsx index 42acd60a..6664d30f 100644 --- a/src/pages/instances/Pods/components/Badge.tsx +++ b/src/pages/instances/Pods/components/Badge.tsx @@ -52,6 +52,11 @@ interface BadgeBarProps { export const BadgeBar = (props: BadgeBarProps) => { const { badges } = props; + + if (!badges || badges.length === 0) { + return null; + } + return ( {badges.map((badge) => )} @@ -73,6 +78,9 @@ export const ClusterBadgeBar = (props: ClusterBadgeBarProps) => { }, }); + if (!badges || badges.length === 0) { + return null; + } return (