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

Merge pull request #2722 from node-red-hitachi/fix-link-selection

fix selection of link node not existing within active workspace
This commit is contained in:
Nick O'Leary 2020-10-13 13:56:53 +01:00 committed by GitHub
commit 9af883231d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1892,7 +1892,8 @@ RED.view = (function() {
activeLinkNodes = {}; activeLinkNodes = {};
for (var i=0;i<movingSet.length();i++) { for (var i=0;i<movingSet.length();i++) {
var msn = movingSet.get(i); var msn = movingSet.get(i);
if (msn.n.type === "link out" || msn.n.type === "link in") { if ((msn.n.type === "link out" || msn.n.type === "link in") &&
(msn.n.z === activeWorkspace)) {
var linkNode = msn.n; var linkNode = msn.n;
activeLinkNodes[linkNode.id] = linkNode; activeLinkNodes[linkNode.id] = linkNode;
var offFlowLinks = {}; var offFlowLinks = {};