mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
Issue #1989 - Fix creating app resources graph using network connections on app details page (#2001)
This commit is contained in:
parent
282de00d80
commit
1b3ec9d578
1 changed files with 2 additions and 2 deletions
|
|
@ -207,8 +207,8 @@ function renderResourceNode(props: ApplicationResourceTreeProps, id: string, nod
|
|||
|
||||
function findNetworkTargets(nodes: ResourceTreeNode[], networkingInfo: models.ResourceNetworkingInfo): ResourceTreeNode[] {
|
||||
let result = new Array<ResourceTreeNode>();
|
||||
const refs = new Set((networkingInfo.targetRefs || []).map(treeNodeKey));
|
||||
result = result.concat(nodes.filter((target) => refs.has(treeNodeKey(target))));
|
||||
const refs = new Set((networkingInfo.targetRefs || []).map(nodeKey));
|
||||
result = result.concat(nodes.filter((target) => refs.has(nodeKey(target))));
|
||||
if (networkingInfo.targetLabels) {
|
||||
result = result.concat(nodes.filter((target) => {
|
||||
if (target.networkingInfo && target.networkingInfo.labels) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue