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

Merge branch 'one-series-required' into 'develop'

Keep one chart series defined

See merge request 
This commit is contained in:
Petr Stribny 2025-03-10 09:02:07 +00:00
commit 922a77d88f
3 changed files with 7 additions and 3 deletions
enterprise
backend/src/baserow_enterprise/integrations/local_baserow
web-frontend/modules/baserow_enterprise/dashboard/components/data_source

View file

@ -175,7 +175,9 @@ class LocalBaserowGroupedAggregateRowsUserServiceType(
code="invalid_aggregation_raw_type",
)
else:
series_agg_used.add(series_aggregation_reference)
# It is still possible to have multiple undefined series
if series_aggregation_reference != "field_None_":
series_agg_used.add(series_aggregation_reference)
return True

View file

@ -46,7 +46,7 @@
</Dropdown>
</FormGroup>
</FormSection>
<FormSection>
<FormSection v-if="aggregationSeries.length > 1">
<ButtonText
icon="iconoir-bin"
type="secondary"

View file

@ -325,7 +325,9 @@ export default {
changeTableId(tableId) {
this.values.table_id = tableId
this.values.view_id = null
this.values.aggregation_series = []
this.values.aggregation_series = [
{ field_id: null, aggregation_type: '' },
]
this.values.aggregation_group_bys = []
this.values.aggregation_sorts = []
this.v$.values.table_id.$touch()