Skip to content

Commit

Permalink
chore: Remove case
Browse files Browse the repository at this point in the history
Remove submit.all case from page reset to avoid page reset on first load
  • Loading branch information
EthanFreestone committed Sep 11, 2023
1 parent 1e671b2 commit 5c49863
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/hooks/usePrevNextPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ const usePrevNextPagination = ({
'filter.clearGroup',
'sort.change',
'search.reset',
'search.submit',
'all.submit'
'search.submit'
];

if (resetPageEvents.includes(nextState.changeType)) {
Expand Down

0 comments on commit 5c49863

Please sign in to comment.