Merge pull request 'HOTFIX: update skip calculation to consider filter limit' (!1559) from hotfix_paginate_limit_filter into master
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1559 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
b139f11323
|
@ -245,7 +245,7 @@ export function useArrayData(key, userOptions) {
|
||||||
async function loadMore() {
|
async function loadMore() {
|
||||||
if (!store.hasMoreData) return;
|
if (!store.hasMoreData) return;
|
||||||
|
|
||||||
store.skip = store.limit * store.page;
|
store.skip = (store?.filter?.limit ?? store.limit) * store.page;
|
||||||
store.page += 1;
|
store.page += 1;
|
||||||
|
|
||||||
await fetch({ append: true });
|
await fetch({ append: true });
|
||||||
|
|
Loading…
Reference in New Issue