1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Subflow palette node outputs not updating

part of #479
This commit is contained in:
Nick O'Leary 2014-11-07 16:12:27 +00:00
parent 5c5de028da
commit 28da2dc38a

View File

@ -208,11 +208,11 @@ RED.palette = (function() {
portInput.remove();
}
if (portOutput === 0 && sf.out.length > 0) {
if (portOutput.length === 0 && sf.out.length > 0) {
var portOut = document.createElement("div");
portOut.className = "palette_port palette_port_output";
paletteNode.append(portOut);
} else if (portOutput !== 0 && sf.out.length === 0) {
} else if (portOutput.length !== 0 && sf.out.length === 0) {
portOutput.remove();
}
setLabel(sf.type+":"+sf.id,paletteNode,sf.name);