Merge pull request #4546 from node-red/4545-importing-duplicate-subflow

Handle importing flow with existing subflow and instance node
This commit is contained in:
Nick O'Leary
2024-01-26 13:47:20 +00:00
committed by GitHub

View File

@@ -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);