Skip to content

Commit

Permalink
EndCursor is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed May 30, 2024
1 parent 1ea62d4 commit e633d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/lib/models/base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Future<List<Map<String, dynamic>>> paginateOverEverything(
}

final result = response.data![DEFAULT_RESULTS_KEY];
endCursor = result['endCursor'] as String;
endCursor = result['endCursor'] as String?;
hasNextPage = result['hasNextPage'] as bool;

for (var document in result['documents'] as List) {
Expand Down

0 comments on commit e633d88

Please sign in to comment.