refactor: refs #8207 improve logic
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-11-22 15:52:22 +01:00
parent 9d8698fa2f
commit 3a4c0e729a
1 changed files with 4 additions and 4 deletions

View File

@ -136,11 +136,11 @@ async function fetch(params, keepPagination = false) {
if (!keepPagination) await arrayData.fetch({ append: false });
else {
arrayData.store.limit = limit + skip;
arrayData.store.skip = 0;
store.limit = limit + skip;
store.skip = 0;
await arrayData.fetch({ append: false });
arrayData.store.limit = limit;
arrayData.store.skip = skip;
store.limit = limit;
store.skip = skip;
}
if (!store.hasMoreData) isLoading.value = false;