Skip to content

Commit 48d314f

Browse files
committed
Use bigger pagination sizes when loading workout sessions
1 parent 8574bca commit 48d314f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/providers/routines.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ class RoutinesProvider with ChangeNotifier {
619619
*/
620620
Future<List<WorkoutSession>> fetchSessionData() async {
621621
final data = await baseProvider.fetchPaginated(
622-
baseProvider.makeUrl(_sessionUrlPath),
622+
baseProvider.makeUrl(_sessionUrlPath, query: {'limit': API_MAX_PAGE_SIZE}),
623623
);
624624
final sessions = data.map((entry) => WorkoutSession.fromJson(entry)).toList();
625625

0 commit comments

Comments
 (0)