Fix issue where subflow color did not update when not on a flow

This commit is contained in:
Phi Dong 2019-10-01 22:46:01 -07:00
parent af742ea536
commit dbca2178c0
1 changed files with 6 additions and 0 deletions

View File

@ -2238,6 +2238,12 @@ RED.editor = (function() {
changes.color = newColor;
changed = true;
RED.utils.clearNodeColorCache();
if (editing_node.type === "subflow") {
var nodeDefinition = RED.nodes.getType(
"subflow:" + editing_node.id
);
nodeDefinition["color"] = newColor;
}
}
var old_env = editing_node.env;