Fix statistics graph days_to_show can't be erased (#15892)

This commit is contained in:
karwosts 2023-03-22 09:56:04 -07:00 committed by GitHub
parent da2de3c7d2
commit d07ae1cf48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ export class HuiStatisticsGraphCardEditor
},
{
name: "days_to_show",
required: true,
default: 30,
selector: { number: { min: 1, mode: "box" } },
},
{
@ -258,7 +258,6 @@ export class HuiStatisticsGraphCardEditor
const data = {
chart_type: "line",
period: "hour",
days_to_show: 30,
...this._config,
stat_types: configured_stat_types,
};