mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Only reset primary/accent color if theme actually changes (#14659)
fixes undefined
This commit is contained in:
parent
0f971e5868
commit
0b377c060c
@ -194,6 +194,10 @@ export class HaPickThemeRow extends LitElement {
|
||||
|
||||
private _handleThemeSelection(ev) {
|
||||
const theme = ev.target.value;
|
||||
if (theme === this.hass.selectedTheme?.theme) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (theme === "Backend-selected") {
|
||||
if (this.hass.selectedTheme?.theme) {
|
||||
fireEvent(this, "settheme", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user