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

fix selection of link node not existing within active workspace
pull/2733/head
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
1 changed files with 2 additions and 1 deletions

View File

@ -1892,7 +1892,8 @@ RED.view = (function() {
activeLinkNodes = {};
for (var i=0;i<movingSet.length();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;
activeLinkNodes[linkNode.id] = linkNode;
var offFlowLinks = {};