Skip to content

Commit

Permalink
fix(#1534): fix progress in the metrics sidebar when page is refreshed (
Browse files Browse the repository at this point in the history
#1536)

This PR fixes the calculation of globalResults aggregations and results aggregations from the url query

(cherry picked from commit 9aa6222)
  • Loading branch information
leiyre authored and frascuchon committed Jun 6, 2022
1 parent 7478d6c commit 1b572c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/database/modules/datasets.js
Expand Up @@ -108,14 +108,14 @@ async function _loadTaskDataset(dataset) {
if (total === undefined || aggregations === undefined) {
const globalResults = await _querySearch({
dataset: _dataset,
query: _dataset.query,
query: {},
size: 0,
});

_dataset = await _updateTaskDataset({
dataset: _dataset,
data: { globalResults },
});
await _refreshDatasetAggregations({ dataset: _dataset });
}

if (pagination && pagination.page > 1) {
Expand Down

0 comments on commit 1b572c4

Please sign in to comment.