From 3b2b77eb06c9ed6ba4291a146a2c9e7d9f9b8e1c Mon Sep 17 00:00:00 2001 From: Nick Sellen Date: Mon, 18 Mar 2024 23:24:21 +0000 Subject: [PATCH] Increase default activity page size to 20 (#2712) If a group has a lot of activities at the same start time it can cause not all of them to be returned. Increasing the page size somewhat mitigates the effect but it really needs to be resolved in the DRF CursorPagination. --- src/activities/queries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activities/queries.js b/src/activities/queries.js index 830af281c..74f2951eb 100644 --- a/src/activities/queries.js +++ b/src/activities/queries.js @@ -106,7 +106,7 @@ export function useActivityListQuery ({ feedbackPossible, hasFeedback, ordering, - pageSize = 10, + pageSize = 20, }, queryOptions = {}) { const query = useInfiniteQuery( queryKeyActivityList({ groupId, placeId, placeStatus, placeArchived, seriesId, activityTypeId, slots, feedbackPossible, hasFeedback, places, ordering, dateMin }),