mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -1903,10 +1903,18 @@ RED.view = (function() { | ||||
|                             } | ||||
|                         } | ||||
|                     } else { | ||||
|                         var existingLink = RED.nodes.filterLinks({source:src,target:dst,sourcePort: src_port}).length !== 0; | ||||
|                         if (!existingLink) { | ||||
|                             RED.nodes.addLink(link); | ||||
|                             addedLinks.push(link); | ||||
|                         // This is not a virtualLink - which means it started | ||||
|                         // on a regular node port. Need to ensure the this isn't | ||||
|                         // connecting to a link node virual port. | ||||
|                         if (!( | ||||
|                             (d.type === "link out" && portType === PORT_TYPE_OUTPUT) || | ||||
|                             (d.type === "link in" && portType === PORT_TYPE_INPUT) | ||||
|                         )) { | ||||
|                             var existingLink = RED.nodes.filterLinks({source:src,target:dst,sourcePort: src_port}).length !== 0; | ||||
|                             if (!existingLink) { | ||||
|                                 RED.nodes.addLink(link); | ||||
|                                 addedLinks.push(link); | ||||
|                             } | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user