mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
fix: reset current_node after deletion
This commit is contained in:
@@ -5220,6 +5220,7 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
node.is_selected = false;
|
node.is_selected = false;
|
||||||
}
|
}
|
||||||
this.selected_nodes = {};
|
this.selected_nodes = {};
|
||||||
|
this.current_node = null;
|
||||||
this.highlighted_links = {};
|
this.highlighted_links = {};
|
||||||
this.setDirty(true);
|
this.setDirty(true);
|
||||||
};
|
};
|
||||||
@@ -5235,6 +5236,7 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
this.graph.remove(m);
|
this.graph.remove(m);
|
||||||
}
|
}
|
||||||
this.selected_nodes = {};
|
this.selected_nodes = {};
|
||||||
|
this.current_node = null;
|
||||||
this.highlighted_links = {};
|
this.highlighted_links = {};
|
||||||
this.setDirty(true);
|
this.setDirty(true);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user