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:
commit
9af883231d
@ -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 = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user