Skip to content

Commit

Permalink
fix(#1265): persist pagination size after query (#1358)
Browse files Browse the repository at this point in the history
This PR prevents the pagination size from changing to the default size after each query

Closes #1265

(cherry picked from commit 8a7fba4)
  • Loading branch information
leiyre authored and frascuchon committed Apr 11, 2022
1 parent c11bfff commit 49ca243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/database/modules/datasets.js
Expand Up @@ -291,7 +291,7 @@ async function _refreshDatasetAggregations({ dataset }) {
async function _search({ dataset, query, sort, size }) {
query = _normalizeSearchQuery({ query: query || {}, dataset });
sort = sort || dataset.sort || [];
size = size || new Pagination().size;
size = size || Pagination.find(dataset.name).size;
try {
await _updateViewSettings({ id: dataset.name, data: { loading: true } });
await _querySearch({ dataset, query, sort, size });
Expand Down

0 comments on commit 49ca243

Please sign in to comment.