mirror of https://github.com/node-red/node-red.git
Do not cache subflow colors as each subflow can have its own
parent
6845cb9873
commit
60656d7f61
|
|
@ -1309,6 +1309,9 @@ RED.utils = (function() {
|
|||
|
||||
function getNodeColor(type, def) {
|
||||
def = def || {};
|
||||
if (type === 'subflow') {
|
||||
return def.color
|
||||
}
|
||||
if (!nodeColorCache.hasOwnProperty(type)) {
|
||||
const paletteTheme = RED.settings.theme('palette.theme') || [];
|
||||
if (paletteTheme.length > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue