From a5ade39d7cacbca5e15cd82f2a88e88e0a95ac4c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 13 May 2017 22:39:06 +0100 Subject: [PATCH] Fix selection of link nodes --- nodes/core/core/60-link.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/60-link.html b/nodes/core/core/60-link.html index 898231e1a..48c5de941 100644 --- a/nodes/core/core/60-link.html +++ b/nodes/core/core/60-link.html @@ -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; } }