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
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue