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) {
}
function removeNodeX(node) {
if (!(node.id in nodesById)) {
addNode(sourceNodeId);
if (node.id in nodesById) {
removeNode(node.id);
}
removeNode(node.id)
}
</script>
</body>`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment