Merge pull request #5518 from node-red/5512-sf-colors

Do not cache subflow colors as each subflow can have its own
pull/5519/head
Nick O'Leary 2026-03-05 15:37:42 +00:00 committed by GitHub
commit 8632b767c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {