Skip to content

Commit

Permalink
Merge pull request #4185 from dlabrecq/COST-5848
Browse files Browse the repository at this point in the history
Reset pagination offset upon per-page selection
  • Loading branch information
dlabrecq authored Jan 28, 2025
2 parents fc422dd + 4ba6ae1 commit 7de93c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/utils/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ export const handleOnPerPageSelect = (query: Query, perPage: number, isLimit = f
...(isLimit
? {
limit: perPage,
offset: 0,
}
: {
filter: {
...query.filter,
limit: perPage,
offset: 0,
},
}),
});
Expand Down

0 comments on commit 7de93c5

Please sign in to comment.