mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Check node props when deciding if pasted node can splice links
Fixes #2494
This commit is contained in:
		@@ -3531,8 +3531,10 @@ RED.view = (function() {
 | 
				
			|||||||
                        if (new_ms.length === 1) {
 | 
					                        if (new_ms.length === 1) {
 | 
				
			||||||
                            node = new_ms[0];
 | 
					                            node = new_ms[0];
 | 
				
			||||||
                            spliceActive = node.n.hasOwnProperty("_def") &&
 | 
					                            spliceActive = node.n.hasOwnProperty("_def") &&
 | 
				
			||||||
                                           node.n._def.inputs > 0 &&
 | 
					                                           ((node.n.hasOwnProperty("inputs") && node.n.inputs > 0) || (!node.n.hasOwnProperty("inputs") && node.n._def.inputs > 0)) &&
 | 
				
			||||||
                                           node.n._def.outputs > 0;
 | 
					                                           ((node.n.hasOwnProperty("outputs") && node.n.outputs > 0) || (!node.n.hasOwnProperty("outputs") && node.n._def.outputs > 0))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    RED.keyboard.add("*","escape",function(){
 | 
					                    RED.keyboard.add("*","escape",function(){
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user