From 1f7662cd467b18d014f55cb70dbdbd40e094882b Mon Sep 17 00:00:00 2001 From: t92549 <80890692+t92549@users.noreply.github.com> Date: Thu, 14 Jul 2022 13:42:53 +0100 Subject: [PATCH] gh-496: Fix bug with concat --- ui/src/main/webapp/app/graph/graph-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/main/webapp/app/graph/graph-component.js b/ui/src/main/webapp/app/graph/graph-component.js index cf68ab7ed..261e3cf16 100644 --- a/ui/src/main/webapp/app/graph/graph-component.js +++ b/ui/src/main/webapp/app/graph/graph-component.js @@ -655,7 +655,7 @@ function GraphController($q, graph, config, error, loading, query, operationOpti */ vm.removeSelected = function() { var removedElements = cytoscapeGraph.filter(":selected").remove().toArray(); - graph.getRemovedElements().concat(removedElements); + graph.setRemovedElements(graph.getRemovedElements().concat(removedElements)); cytoscapeGraph.elements().unselect(); vm.selectedElements.entities = [];