Skip to content

Commit

Permalink
Handle empty pagination response
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jul 8, 2022
1 parent 418a50a commit 634a223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/validatorMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function ValidatorMonitor() {
if(result && result.body){
const json = JSON.parse(result.body)
pages.push(json);
nextKey = json.pagination.next_key;
nextKey = json.pagination?.next_key;
}else{
nextKey = undefined
}
Expand Down

0 comments on commit 634a223

Please sign in to comment.