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

fix error on empty label

This commit is contained in:
Hiroyasu Nishiyama 2020-05-17 11:44:23 +09:00
parent 243915516e
commit 5f5e6ea845

View File

@ -4287,6 +4287,7 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
.style("fill", d.style.hasOwnProperty('color')?d.style.color:"#999")
.attr("transform","translate("+labelX+","+labelY+")")
.attr("text-anchor",labelAnchor);
if (d.labels) {
var ypos = 0;
g.selectAll(".red-ui-flow-group-label-text").remove();
d.labels.forEach(function (name) {
@ -4298,6 +4299,7 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
ypos += 15;
});
}
}
delete dirtyGroups[d.id];
delete d.dirty;