diff --git a/src/viz/dataview/formula/FormulaDataViewImpl.ts b/src/viz/dataview/formula/FormulaDataViewImpl.ts index 5e340500..08a1b736 100644 --- a/src/viz/dataview/formula/FormulaDataViewImpl.ts +++ b/src/viz/dataview/formula/FormulaDataViewImpl.ts @@ -59,14 +59,15 @@ export class FormulaDataViewImpl extends DataViewImpl { try { const filterApplicator = dataviewRemote.getFilterApplicator(); const bbox = filterApplicator.getBbox(); + + dataviewRemote.updateDataViewSource(options); + const dataviewsApiResponse = await dataviewRemote.dataviewsApi.formula({ column: this.column, operation: this.operation, bbox }); - dataviewRemote.updateDataViewSource(options); - if ( dataviewsApiResponse.errors_with_context && dataviewsApiResponse.errors_with_context.length > 0