mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
Fix: saveguard for choosing defailt aggregator
This commit is contained in:
@@ -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;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user