Skip to content

Commit

Permalink
Merge pull request #1567 from bipuladh/fix-node-map
Browse files Browse the repository at this point in the history
Adds optional chaining for label selector in topology view
  • Loading branch information
openshift-merge-bot[bot] authored Sep 10, 2024
2 parents 376ebbf + 851d37a commit 00bf9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/odf/components/topology/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 00bf9fb

Please sign in to comment.