Skip to content

Commit

Permalink
fix: Guard against falsy config on load
Browse files Browse the repository at this point in the history
  • Loading branch information
kiosion committed Oct 14, 2024
1 parent f57236b commit a083c52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion svelte-app/src/components/sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
class="order-2 flex flex-col items-start justify-start gap-y-4 p-4 lg:order-1"
>
<div class="flex w-full flex-shrink-0 flex-row items-center justify-start gap-x-4">
<ProfileImage images={config.image} />
{#if config.image}
<ProfileImage images={config.image} />
{/if}
<div class="flex select-none flex-col items-start justify-center gap-y-0.5">
<h1
class="text-lg font-bold text-neutral-900 transition-colors dark:text-neutral-100"
Expand Down

0 comments on commit a083c52

Please sign in to comment.