mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add condition to handle existing node
This commit is contained in:
		| @@ -186,7 +186,7 @@ RED.palette = (function() { | ||||
|                 var icon_url = RED.utils.getNodeIcon(def); | ||||
|                 var iconContainer = $('<div/>', { | ||||
|                     class: "palette_icon_container" | ||||
|                          + (((def.inputs !== 0 && def.outputs === 0) || "right" === def.align) ? " palette_icon_container_right" : "") | ||||
|                          + (((!def.align && def.inputs !== 0 && def.outputs === 0) || "right" === def.align) ? " palette_icon_container_right" : "") | ||||
|                 }).appendTo(d); | ||||
|                 RED.utils.createIconElement(icon_url, iconContainer, true); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user