mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix selection of link nodes
This commit is contained in:
		@@ -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;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user