diff --git a/packages/odf/components/topology/utils.ts b/packages/odf/components/topology/utils.ts index ca12b0504..46b6b1d3b 100644 --- a/packages/odf/components/topology/utils.ts +++ b/packages/odf/components/topology/utils.ts @@ -32,7 +32,7 @@ export const generateNodeDeploymentsMap = ( const podsInNode = pods.filter( (pod) => pod.spec.nodeName === getName(node) && - allNames.includes(pod.metadata.labels['app']) + allNames.includes(pod.metadata.labels?.['app']) ); const deploymentsInNode = podsInNode .filter((pod) => _.has(pod, 'metadata.ownerReferences'))