mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +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 === "") {
|
if (!this.hass || ev.target.value === "") {
|
||||||
return;
|
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 });
|
fireEvent(this, "value-changed", { value: this.value });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,6 @@ export class HuiAreaCardEditor
|
|||||||
|
|
||||||
private _valueChanged(ev: CustomEvent): void {
|
private _valueChanged(ev: CustomEvent): void {
|
||||||
const config = ev.detail.value;
|
const config = ev.detail.value;
|
||||||
Object.keys(config).forEach((k) => config[k] === "" && delete config[k]);
|
|
||||||
fireEvent(this, "config-changed", { config });
|
fireEvent(this, "config-changed", { config });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user