Do not cache subflow colors as each subflow can have its own

pull/5518/head
Nick O'Leary 2026-03-05 15:26:32 +00:00
parent 6845cb9873
commit 60656d7f61
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 0 deletions

View File

@ -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) {