Skip to content
Snippets Groups Projects
Commit f4adefc0 authored by Angelo Capossele's avatar Angelo Capossele Committed by Wolfgang Welz
Browse files

:bug: Fixes removeNodeX (#162)

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.
Finish editing this message first!
Please register or to comment