mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Fix issue where theme select does not appear when user's theme is deleted (#12104)
This commit is contained in:
parent
859f49f3eb
commit
27ca61ec85
@ -173,6 +173,9 @@ export class HaPickThemeRow extends LitElement {
|
||||
}
|
||||
|
||||
private _supportsModeSelection(themeName: string): boolean {
|
||||
if (!(themeName in this.hass.themes.themes)) {
|
||||
return false; // User's theme no longer exists
|
||||
}
|
||||
return "modes" in this.hass.themes.themes[themeName];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user