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

Fix importing connected link nodes into a subflow

Fixes #4055
This commit is contained in:
Nick O'Leary 2023-03-02 14:14:33 +00:00
parent 910f6134f6
commit 27e258b19b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

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