Skip to content
Snippets Groups Projects
Commit 561483d3 authored by capossele's avatar capossele
Browse files

:bug: fixes removeNodeX

parent 8bcd437d
No related branches found
No related tags found
No related merge requests found
...@@ -159,10 +159,9 @@ func index(w http.ResponseWriter, r *http.Request) { ...@@ -159,10 +159,9 @@ func index(w http.ResponseWriter, r *http.Request) {
} }
function removeNodeX(node) { function removeNodeX(node) {
if (!(node.id in nodesById)) { if (node.id in nodesById) {
addNode(sourceNodeId); removeNode(node.id);
} }
removeNode(node.id)
} }
</script> </script>
</body>`) </body>`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment