Skip to content

Commit

Permalink
Merge pull request #1254 from empathyco/bugfix/scroll-is-not-kept
Browse files Browse the repository at this point in the history
bugfix: save the number of pages loaded
  • Loading branch information
lauramargar authored Jul 27, 2023
2 parents 4688fe6 + ff251aa commit fae7903
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 fae7903

Please sign in to comment.