[chore] Update npm packages and fix errors/run migrations
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
onMount(async () => {
|
||||
// Disable when changing filters on /photos and shop?
|
||||
if (!$page.query.get('country') && !$page.path.includes('/shop')) {
|
||||
if (!$page.url.searchParams.get('country') && !$page.url.pathname.includes('/shop')) {
|
||||
await tick()
|
||||
setTimeout(() => {
|
||||
// Scroll back to top between page transitions
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
>
|
||||
<ul class="switcher__links">
|
||||
{#each links as { icon, iconLabel, url, text }}
|
||||
<li class:is-active={$page.path.startsWith(url)}>
|
||||
<li class:is-active={$page.url.pathname.startsWith(url)}>
|
||||
<a href={url} on:click={toggleSwitcher}
|
||||
sveltekit:noscroll sveltekit:prefetch
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user