Skip to content

Commit

Permalink
fix(web): infinite loop browser navigation crash admin settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Dec 21, 2024
1 parent d5906c2 commit 08f0e9f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
import { writable, type Writable } from 'svelte/store';
import { createContext } from '$lib/utils/context';
import { page } from '$app/state';
import { handlePromiseError } from '$lib/utils';
import { goto } from '$app/navigation';
import { replaceState } from '$app/navigation';
import type { Snippet } from 'svelte';
const getParamValues = (param: string) => {
Expand All @@ -35,7 +34,7 @@
searchParams.delete(queryParam);
}
handlePromiseError(goto(`?${searchParams.toString()}`, { replaceState: true, noScroll: true, keepFocus: true }));
replaceState(`?${searchParams.toString()}`, { replaceState: true, noScroll: true, keepFocus: true });
}
});
</script>
Expand Down

0 comments on commit 08f0e9f

Please sign in to comment.