Skip to content

Commit

Permalink
Address code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreeze authored Jul 30, 2021
1 parent 77a2a41 commit 59bc3c0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ export class PodView extends React.Component<PodViewProps> {
}

const statusByKey = new Map<string, ResourceStatus>();
if (this.props.app) {
(this.props.app.status?.resources || []).forEach(res => statusByKey.set(nodeKey(res), res));
}
this.props.app.status?.resources?.forEach(res => statusByKey.set(nodeKey(res), res));
(tree.nodes || []).forEach((rnode: ResourceTreeNode) => {
// make sure each node has not null/undefined parentRefs field
rnode.parentRefs = rnode.parentRefs || [];
Expand Down

0 comments on commit 59bc3c0

Please sign in to comment.