mirror of https://github.com/node-red/node-red.git
Handle importing flow with existing subflow and instance node
Fixes #45454545-importing-duplicate-subflow
parent
5b096bfd5e
commit
f7b726372f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue