Skip to content

Commit

Permalink
fixed pagination issue charlypoly#71
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko committed Feb 19, 2019
1 parent f3d3b11 commit ffd1bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function shouldStopIterate(iterator: anyPagingIterator, maxResults: number): boo
case 'offset':
// tslint:disable-next-line:comment-format
// console.log('shouldStopIterate', `${iterator.results.length} >= ${maxResults}`);
if (!!iterator.total) {
if (iterator.total !== null) {
if (iterator.offset >= iterator.total) {
return true;
} else {
Expand Down

0 comments on commit ffd1bc8

Please sign in to comment.