mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix selection of link nodes
This commit is contained in:
parent
f39b4e7d22
commit
a5ade39d7c
@ -138,14 +138,14 @@
|
|||||||
|
|
||||||
var nodeList = $("#node-input-link-container");
|
var nodeList = $("#node-input-link-container");
|
||||||
var candidateNodes = RED.nodes.filterNodes({type:targetType});
|
var candidateNodes = RED.nodes.filterNodes({type:targetType});
|
||||||
var inSubflow = (RED.nodes.subflow(node.z) !== null);
|
var inSubflow = !!RED.nodes.subflow(node.z);
|
||||||
candidateNodes.forEach(function(n) {
|
candidateNodes.forEach(function(n) {
|
||||||
if (inSubflow) {
|
if (inSubflow) {
|
||||||
if (n.z !== node.z) {
|
if (n.z !== node.z) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (RED.nodes.subflow(n.z) !== null) {
|
if (!!RED.nodes.subflow(n.z)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user