Skip to content

Commit

Permalink
Fix period selector in statistic card (#18131)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Oct 9, 2023
1 parent 294df39 commit 5a6d6dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class HuiStatisticCardEditor
}

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]);

if (typeof config.period === "string") {
Expand Down

0 comments on commit 5a6d6dc

Please sign in to comment.