Skip to content

Commit e7937dc

Browse files
author
Jas Kuner
authored
remove duplicates from the expandedNodeMap array from the outset. needs further testing (#1031)
1 parent 38d7a31 commit e7937dc

File tree

1 file changed

+1
-1
lines changed
  • src/browser/modules/D3Visualization/lib/visualization/components

1 file changed

+1
-1
lines changed

src/browser/modules/D3Visualization/lib/visualization/components/graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class Graph {
8282
this.nodeMap[eNode.id] = eNode
8383
this._nodes.push(eNode)
8484
this.expandedNodeMap[node.id] = this.expandedNodeMap[node.id]
85-
? this.expandedNodeMap[node.id].concat([eNode.id])
85+
? [...new Set(this.expandedNodeMap[node.id].concat([eNode.id]))]
8686
: [eNode.id]
8787
}
8888
}

0 commit comments

Comments
 (0)