mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
set theme to undefined when no theme (#11765)
This commit is contained in:
parent
eb1f94c370
commit
e6d1e86c64
@ -57,7 +57,7 @@ export class HuiThemeSelectEditor extends LitElement {
|
||||
if (!this.hass || ev.target.value === "") {
|
||||
return;
|
||||
}
|
||||
this.value = ev.target.value === "remove" ? "" : ev.target.value;
|
||||
this.value = ev.target.value === "remove" ? undefined : ev.target.value;
|
||||
fireEvent(this, "value-changed", { value: this.value });
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,6 @@ export class HuiAreaCardEditor
|
||||
|
||||
private _valueChanged(ev: CustomEvent): void {
|
||||
const config = ev.detail.value;
|
||||
Object.keys(config).forEach((k) => config[k] === "" && delete config[k]);
|
||||
fireEvent(this, "config-changed", { config });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user