Skip to content

Commit 7dc531c

Browse files
fix(pagination): stop cursor auto-pagination dropping pages
Stainless-Generated-From: b05f24a
1 parent 338ef99 commit 7dc531c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/pagination/pagination.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ func (r *CursorPagePagination[T]) GetNextPage() (res *CursorPagePagination[T], e
149149
if len(r.Data) == 0 {
150150
return nil, nil
151151
}
152-
153-
if !r.JSON.Done.IsMissing() && r.Done == false {
154-
return nil, nil
155-
}
156152
next := r.Iterator
157153
if len(next) == 0 {
158154
return nil, nil

0 commit comments

Comments
 (0)