mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Drop period if invalid
This commit is contained in:
parent
726ed32626
commit
e31d1aace0
@ -94,6 +94,12 @@ export class HuiStatisticsGraphCardEditor
|
|||||||
this.hass!,
|
this.hass!,
|
||||||
statisticIds || []
|
statisticIds || []
|
||||||
);
|
);
|
||||||
|
if (statisticIds?.some((statistic_id) => statistic_id.includes(":"))) {
|
||||||
|
const { period, ...config } = this._config!;
|
||||||
|
fireEvent(this, "config-changed", {
|
||||||
|
config: config,
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public willUpdate(changedProps: PropertyValues) {
|
public willUpdate(changedProps: PropertyValues) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user