diff --git a/ui/src/app/applications/components/application-details/application-resource-list.tsx b/ui/src/app/applications/components/application-details/application-resource-list.tsx index dba61c5135492..61c05df4a02f6 100644 --- a/ui/src/app/applications/components/application-details/application-resource-list.tsx +++ b/ui/src/app/applications/components/application-details/application-resource-list.tsx @@ -15,7 +15,7 @@ export const ApplicationResourceList = ({ resources, onNodeClick, nodeMenu, - tree + tree, }: { resources: models.ResourceStatus[]; onNodeClick?: (fullName: string) => any; @@ -30,36 +30,43 @@ export const ApplicationResourceList = ({ } return null; } - const parentNode = ((resources || []).length > 0 && (getResNode(tree.nodes, nodeKey(resources[0])) as ResourceNode)?.parentRefs?.[0]) || ({} as ResourceRef); + const parentNode = resources?.length > 0 && (getResNode(tree.nodes, nodeKey(resources[0]))?.parentRefs?.[0] || ({} as ResourceRef)); + const ParenRefDetails = () => { + return ( +