mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Check both node props and defn props when deciding to splice
This commit is contained in:
		| @@ -1158,8 +1158,8 @@ RED.view = (function() { | ||||
|                 if (moving_set.length === 1) { | ||||
|                     node = moving_set[0]; | ||||
|                     spliceActive = node.n.hasOwnProperty("_def") && | ||||
|                                    node.n._def.inputs > 0 && | ||||
|                                    node.n._def.outputs > 0 && | ||||
|                                    ((node.n.hasOwnProperty("inputs") && node.n.inputs > 0) || (!node.n.hasOwnProperty("inputs") && node.n._def.inputs > 0)) && | ||||
|                                    ((node.n.hasOwnProperty("outputs") && node.n.outputs > 0) || (!node.n.hasOwnProperty("outputs") && node.n._def.outputs > 0)) && | ||||
|                                    RED.nodes.filterLinks({ source: node.n }).length === 0 && | ||||
|                                    RED.nodes.filterLinks({ target: node.n }).length === 0; | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user