From dbca2178c0faa61cadd3de69dfba848dbb0b9ece Mon Sep 17 00:00:00 2001 From: Phi Dong Date: Tue, 1 Oct 2019 22:46:01 -0700 Subject: [PATCH] Fix issue where subflow color did not update when not on a flow --- .../@node-red/editor-client/src/js/ui/editor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index 27100c070..60ce66e61 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -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;