From 33157c807167eb54ca4820be89befe34da2cca49 Mon Sep 17 00:00:00 2001 From: Jas Kuner Date: Tue, 31 Dec 2019 12:03:07 +0000 Subject: [PATCH] remove duplicates from the expandedNodeMap array from the outset. needs further testing --- .../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] } }