1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-25 13:23:42 +00:00

Merge branch 'charts-no-reset' into 'develop'

Don't reset grouped aggregate form if the selected table is the same one

See merge request 
This commit is contained in:
Petr Stribny 2025-03-13 01:36:38 +00:00
commit 1ffb165241

View file

@ -323,14 +323,16 @@ export default {
return aggType.getName() return aggType.getName()
}, },
changeTableId(tableId) { changeTableId(tableId) {
this.values.table_id = tableId if (this.values.table_id !== tableId) {
this.values.view_id = null this.values.table_id = tableId
this.values.aggregation_series = [ this.values.view_id = null
{ field_id: null, aggregation_type: '' }, this.values.aggregation_series = [
] { field_id: null, aggregation_type: '' },
this.values.aggregation_group_bys = [] ]
this.values.aggregation_sorts = [] this.values.aggregation_group_bys = []
this.v$.values.table_id.$touch() this.values.aggregation_sorts = []
this.v$.values.table_id.$touch()
}
}, },
async addSeries() { async addSeries() {
this.setEmitValues(false) this.setEmitValues(false)