From 27e258b19b2870366eb5c1c0d9ba8fe4738e8c0e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 2 Mar 2023 14:14:33 +0000 Subject: [PATCH] Fix importing connected link nodes into a subflow Fixes #4055 --- packages/node_modules/@node-red/editor-client/src/js/nodes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index 36bc2a7fa..5f054782e 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -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) }); }