mirror of https://github.com/node-red/node-red.git
Fix `new_nodes` should be used instead of `node_map`
parent
476016cbcc
commit
1d342a778d
|
@ -2406,8 +2406,8 @@ RED.nodes = (function() {
|
|||
// get added
|
||||
if (activeSubflow && /^link /.test(n.type) && n.links) {
|
||||
n.links = n.links.filter(function(id) {
|
||||
const otherNodeInMap = Object.values(node_map).filter(function(n) { return n.id === id; });
|
||||
const otherNode = (otherNodeInMap.length ? otherNodeInMap[0] : null) || RED.nodes.node(id);
|
||||
const nodeImported = new_nodes.filter(function(n) { return n.id === id; });
|
||||
const otherNode = (nodeImported.length ? nodeImported[0] : null) || RED.nodes.node(id);
|
||||
return (otherNode && otherNode.z === activeWorkspace);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue