fix infinite scroll pagination in collection queries
use pageParam instead of response.page (which was undefined)
This commit is contained in:
parent
debf502a6c
commit
e0a41102fd
1 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ export const collectionQueries = {
|
|||
})
|
||||
return {
|
||||
results: response.results,
|
||||
page: response.page,
|
||||
page: pageParam,
|
||||
totalPages: response.totalPages,
|
||||
total: response.total,
|
||||
perPage: response.perPage ?? 50
|
||||
|
|
@ -108,7 +108,7 @@ export const collectionQueries = {
|
|||
})
|
||||
return {
|
||||
results: response.results,
|
||||
page: response.page,
|
||||
page: pageParam,
|
||||
totalPages: response.totalPages,
|
||||
total: response.total,
|
||||
perPage: response.perPage ?? 50
|
||||
|
|
@ -139,7 +139,7 @@ export const collectionQueries = {
|
|||
})
|
||||
return {
|
||||
results: response.results,
|
||||
page: response.page,
|
||||
page: pageParam,
|
||||
totalPages: response.totalPages,
|
||||
total: response.total,
|
||||
perPage: response.perPage ?? 50
|
||||
|
|
|
|||
Loading…
Reference in a new issue