mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +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;
|
||||
}
|
||||
this.selected_nodes = {};
|
||||
this.current_node = null;
|
||||
this.highlighted_links = {};
|
||||
this.setDirty(true);
|
||||
};
|
||||
@@ -5235,6 +5236,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
this.graph.remove(m);
|
||||
}
|
||||
this.selected_nodes = {};
|
||||
this.current_node = null;
|
||||
this.highlighted_links = {};
|
||||
this.setDirty(true);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user