Fix bug breaking pagination in global users search

This commit is contained in:
Andrew Kingston 2023-10-31 12:10:41 +00:00
parent 9e18c666ad
commit 99a0c8b08b
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ export const paginatedUsers = async ({
const response = await db.allDocs(getGlobalUserParams(null, opts))
userList = response.rows.map((row: any) => row.doc)
}
return pagination(userList, pageLimit, {
return pagination(userList, limit ?? PAGE_LIMIT, {
paginate: true,
property,
getKey,