Skip to content

Commit

Permalink
bugfix: save the number of pages loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramargar committed Jul 27, 2023
1 parent 4688fe6 commit ff251aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export const setUrlParams: SearchXStoreModule['actions']['setUrlParams'] = (
const currentQuery = state.query;

commit('setQuery', query);
commit('setPage', currentQuery === query ? page : 1);
commit('setPage', !currentQuery || currentQuery === query ? page : 1);
commit('setSort', sort);
};

0 comments on commit ff251aa

Please sign in to comment.