1
0
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:
Nick O'Leary 2017-05-13 22:39:06 +01:00
parent f39b4e7d22
commit a5ade39d7c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -138,14 +138,14 @@
var nodeList = $("#node-input-link-container");
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) {
if (inSubflow) {
if (n.z !== node.z) {
return;
}
} else {
if (RED.nodes.subflow(n.z) !== null) {
if (!!RED.nodes.subflow(n.z)) {
return;
}
}