Skip to content

Commit 3477c4b

Browse files
committed
improvement(paginator): use better metric for hasPages property
1 parent 0a454f6 commit 3477c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Paginator/SimplePaginator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class SimplePaginator extends Array implements SimplePaginatorContract<an
7171
/**
7272
* Find if there are enough results to be paginated or not
7373
*/
74-
public readonly hasPages: boolean = this.currentPage !== 1 || this.hasMorePages
74+
public readonly hasPages: boolean = this.lastPage !== 1
7575

7676
constructor(
7777
private totalNumber: number,

0 commit comments

Comments
 (0)