From 54530a6aa78a2c6265f9f8d9a05b36d66046d6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Arag=C3=B3n?= Date: Wed, 2 Sep 2020 12:21:58 +0200 Subject: [PATCH] bug fixed --- src/viz/dataview/formula/FormulaDataViewImpl.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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