Add condition to handle existing node

This commit is contained in:
Kazuhito Yokoi 2019-03-05 21:28:08 +09:00
parent 66fc4b536c
commit f80b172022
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}