mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Fix period selector in statistic card (#18131)
This commit is contained in:
parent
294df396f4
commit
5a6d6dc7d3
@ -196,7 +196,7 @@ export class HuiStatisticCardEditor
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _valueChanged(ev: CustomEvent) {
|
private async _valueChanged(ev: CustomEvent) {
|
||||||
const config = ev.detail.value as StatisticCardConfig;
|
const config = { ...ev.detail.value } as StatisticCardConfig;
|
||||||
Object.keys(config).forEach((k) => config[k] === "" && delete config[k]);
|
Object.keys(config).forEach((k) => config[k] === "" && delete config[k]);
|
||||||
|
|
||||||
if (typeof config.period === "string") {
|
if (typeof config.period === "string") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user