Skip to content

Commit 257285f

Browse files
fix(client): incorrect offset pagination check
1 parent 98a596f commit 257285f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pagination.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ export class DatasetsIterrows<Item> extends AbstractPage<Item> implements Datase
4848
}
4949

5050
nextPageInfo(): PageInfo | null {
51-
const offset = this.next_index;
52-
if (!offset) {
53-
return null;
54-
}
55-
51+
const offset = this.next_index ?? 0;
5652
const length = this.getPaginatedItems().length;
5753
const currentCount = offset + length;
5854

0 commit comments

Comments
 (0)