mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix new_nodes
should be used instead of node_map
This commit is contained in:
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…
x
Reference in New Issue
Block a user