Skip to content

Commit

Permalink
Merge pull request node-red#4546 from node-red/4545-importing-duplica…
Browse files Browse the repository at this point in the history
…te-subflow

Handle importing flow with existing subflow and instance node
  • Loading branch information
knolleary authored Jan 26, 2024
2 parents 5b096bf + f7b7263 commit 507f9b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ RED.nodes = (function() {
set: registry.getNodeSet("node-red/unknown")
}
} else {
if (createNewIds || options.importMap[n.id] === "copy") {
if (subflow_denylist[parentId] || createNewIds || options.importMap[n.id] === "copy") {
parentId = subflow.id;
node.type = "subflow:"+parentId;
node._def = registry.getNodeType(node.type);
Expand Down

0 comments on commit 507f9b6

Please sign in to comment.