diff --git a/public/js/components/Dashboard/WidgetAdmin/Edit/Report/Aggregators.js b/public/js/components/Dashboard/WidgetAdmin/Edit/Report/Aggregators.js index a4dc6af74..e4cf5fd46 100644 --- a/public/js/components/Dashboard/WidgetAdmin/Edit/Report/Aggregators.js +++ b/public/js/components/Dashboard/WidgetAdmin/Edit/Report/Aggregators.js @@ -29,8 +29,9 @@ export default { return this.modelValue.findIndex(agg => agg.default); }, set(v) { - let curr = this.modelValue.find(agg => agg.default); - delete curr.default; + const curr = this.modelValue.find(agg => agg.default); + if (curr) + delete curr.default; this.modelValue[v].default = true; }, },