diff --git a/packages/core/src/main/cluster/update-entity-spec.injectable.ts b/packages/core/src/main/cluster/update-entity-spec.injectable.ts index 419359ba4b..bdb8a1491a 100644 --- a/packages/core/src/main/cluster/update-entity-spec.injectable.ts +++ b/packages/core/src/main/cluster/update-entity-spec.injectable.ts @@ -23,8 +23,13 @@ const updateEntitySpecInjectable = getInjectable({ entity.spec.metrics.prometheus = prometheus; } + entity.spec.icon ??= {}; + + if (cluster.preferences.iconBackgroundColor) { + entity.spec.icon.background = cluster.preferences.iconBackgroundColor; + } + if (cluster.preferences.icon) { - entity.spec.icon ??= {}; entity.spec.icon.src = cluster.preferences.icon; entity.spec.icon.background = cluster.preferences.iconBackgroundColor; } else if (cluster.preferences.icon === null) {