1
0
Fork 0
mirror of synced 2024-08-04 21:02:01 +12:00

Making sure to measure whether we have paged forward in the query based on raw results.

This commit is contained in:
mike12345567 2024-06-18 12:48:36 +01:00
parent 278242fb55
commit bda83205ee

View file

@ -219,7 +219,7 @@ export async function search(
// check for pagination final row
let nextRow: Row | undefined
if (paginate && params.limit && processed.length > params.limit) {
if (paginate && params.limit && rows.length > params.limit) {
// remove the extra row that confirmed if there is another row to move to
nextRow = processed.pop()
}