Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Increase default activity page size to 20 (#2712)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nicksellen committed Mar 18, 2024
1 parent 4723f4b commit 3b2b77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activities/queries.js
Expand Up @@ -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 }),
Expand Down

0 comments on commit 3b2b77e

Please sign in to comment.