Skip to content

Commit 63aee26

Browse files
fix(client): incorrect offset pagination check
1 parent dc0b070 commit 63aee26

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/core/pagination.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,7 @@ export class OffsetPagination<Item> extends AbstractPage<Item> {
148148
}
149149

150150
nextPageRequestOptions(): PageRequestOptions | null {
151-
const offset = this.next_offset;
152-
if (!offset) {
153-
return null;
154-
}
155-
151+
const offset = this.next_offset ?? 0;
156152
const length = this.getPaginatedItems().length;
157153
const currentCount = offset + length;
158154

0 commit comments

Comments
 (0)