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}