[chore] Update npm packages and fix errors/run migrations

This commit is contained in:
2022-01-03 20:12:22 +01:00
parent 9de5aa16c9
commit 729138cffb
15 changed files with 186 additions and 182 deletions

View File

@@ -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

View File

@@ -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
>