Skip to content

Commit

Permalink
remove duplicates from the expandedNodeMap array from the outset. nee…
Browse files Browse the repository at this point in the history
…ds further testing (#1031)
  • Loading branch information
Jas Kuner authored Jan 7, 2020
1 parent 38d7a31 commit e7937dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Expand Down

0 comments on commit e7937dc

Please sign in to comment.