1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #4082 from node-red/fix-link-import

Fix importing connected link nodes into a subflow
This commit is contained in:
Nick O'Leary 2023-03-02 15:10:58 +00:00 committed by GitHub
commit d4f4c7b8c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2302,7 +2302,7 @@ RED.nodes = (function() {
// get added
if (activeSubflow && /^link /.test(n.type) && n.links) {
n.links = n.links.filter(function(id) {
var otherNode = RED.nodes.node(id);
const otherNode = node_map[id] || RED.nodes.node(id);
return (otherNode && otherNode.z === activeWorkspace)
});
}