Making sure to measure whether we have paged forward in the query based on raw results.
This commit is contained in:
parent
278242fb55
commit
bda83205ee
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ export async function search(
|
||||||
|
|
||||||
// check for pagination final row
|
// check for pagination final row
|
||||||
let nextRow: Row | undefined
|
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
|
// remove the extra row that confirmed if there is another row to move to
|
||||||
nextRow = processed.pop()
|
nextRow = processed.pop()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue