Skip to content

Commit

Permalink
do not clobber history on merchants page load
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 19, 2024
1 parent eeb5236 commit 31ecab3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes/(app)/players/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
const querySortBy = $page.url.searchParams.get('sortBy');
if (sortBy && querySortBy !== sortBy) {
$page.url.searchParams.set('sortBy', sortBy);
if (browser) {
goto(`?${$page.url.searchParams.toString()}`);
}
window.history.replaceState(history.state, '', `?${$page.url.searchParams.toString()}`);
}
}
$: {
Expand Down

0 comments on commit 31ecab3

Please sign in to comment.