Issue #1989 - Fix creating app resources graph using network connections on app details page (#2001)

This commit is contained in:
Alexander Matyushentsev 2019-07-24 15:07:06 -07:00 committed by Alex Collins
parent 282de00d80
commit 1b3ec9d578

View file

@ -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) {