Commit 3382cfdb authored by Jérome Perrin's avatar Jérome Perrin

Graph editor: remove node_id from node_id_to_dom_element_id when node is removed (from Ioannis)

parent 9b8ccedf
......@@ -313,6 +313,7 @@
);
$(gadget.props.element).find("#" + element_id).remove();
delete gadget.props.data.graph.node[node_id];
delete gadget.props.data.node_id_to_dom_element_id[node_id];
$.each(gadget.props.data.graph.edge, function (k, v) {
if (node_id === v.source || node_id === v.destination) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment