From 7484d46d6c809cff791273b27b3b807bdbe29e8d Mon Sep 17 00:00:00 2001 From: Xylight Date: Wed, 17 Jul 2024 09:44:45 -0700 Subject: [PATCH] fix: error on load with LOCK_TO_INSTANCE set to true --- package.json | 2 +- src/routes/+layout.svelte | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ca2d0fd2..f43bfcc9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.31.0", + "version": "1.31.0-fix.1", "devDependencies": { "@catdadcode/svelte-adapter-bun": "^0.5.7", "@dicebear/core": "^8.0.1", diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 15b99e24..443b808f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -59,7 +59,7 @@ history.replaceState( null, '', - window.location.toString().replace('#main', '') + window.location.toString().replace('#main', ''), ) } window @@ -88,11 +88,11 @@ - {#if $site} - {$site.site_view.site.name} + {#if $site?.site_view} + {$site?.site_view.site.name} {#if LINKED_INSTANCE_URL} - - + + {:else} {/if}