mirror of https://github.com/node-red/node-red.git
Merge pull request #5518 from node-red/5512-sf-colors
Do not cache subflow colors as each subflow can have its ownpull/5519/head
commit
8632b767c4
|
|
@ -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