mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17: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!,
|
||||
statisticIds || []
|
||||
);
|
||||
if (statisticIds?.some((statistic_id) => statistic_id.includes(":"))) {
|
||||
const { period, ...config } = this._config!;
|
||||
fireEvent(this, "config-changed", {
|
||||
config: config,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
public willUpdate(changedProps: PropertyValues) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user