From e7937dc1c24057df484b51a5eeb1e15c68003fa4 Mon Sep 17 00:00:00 2001 From: Jas Kuner Date: Tue, 7 Jan 2020 15:40:14 +0000 Subject: [PATCH] remove duplicates from the expandedNodeMap array from the outset. needs further testing (#1031) --- .../D3Visualization/lib/visualization/components/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/modules/D3Visualization/lib/visualization/components/graph.js b/src/browser/modules/D3Visualization/lib/visualization/components/graph.js index fcf1caba4b1..34116a8ddee 100644 --- a/src/browser/modules/D3Visualization/lib/visualization/components/graph.js +++ b/src/browser/modules/D3Visualization/lib/visualization/components/graph.js @@ -82,7 +82,7 @@ export default class Graph { this.nodeMap[eNode.id] = eNode this._nodes.push(eNode) this.expandedNodeMap[node.id] = this.expandedNodeMap[node.id] - ? this.expandedNodeMap[node.id].concat([eNode.id]) + ? [...new Set(this.expandedNodeMap[node.id].concat([eNode.id]))] : [eNode.id] } }