Update packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js

Co-authored-by: Gauthier Dandele <92022724+GogoVega@users.noreply.github.com>
This commit is contained in:
Nick O'Leary 2024-12-03 17:14:04 +00:00 committed by GitHub
parent cc1c87387b
commit aee531bf16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -508,7 +508,10 @@ RED.subflow = (function() {
var activeSubflow = RED.nodes.subflow(id);
RED.nodes.eachNode(function(n) {
if (n.z === id || (!keepInstanceNodes && n.type === "subflow:" + id)) {
if (!keepInstanceNodes && n.type == "subflow:"+id) {
removedNodes.push(n);
}
if (n.z == id) {
RED.nodes.updateConfigNodeUsers(n, { action: "remove" });
removedNodes.push(n);
}