Handle importing flow with existing subflow and instance node

Fixes #4545
This commit is contained in:
Nick O'Leary 2024-01-25 17:26:52 +00:00
parent 5b096bfd5e
commit f7b726372f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

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