fix: postform crash

This commit is contained in:
Xylight committed 2024-11-01 10:32:06 -07:00
1 parent 2b27e99784
commit 3ebb46e37d
3 files changed
+17 -21

No files matched your search

@@ -52,7 +52,7 @@
nsfw: boolean
loading: boolean
alt_text?: string
language_id?: number
language_id?: number | string
}
formtitle?: import('svelte').Snippet
}
@@ -273,7 +273,7 @@
{#if !data.community}
<ObjectAutocomplete
bind:q={communitySearch}
bind:items={communities}
items={communities}
jwt={$profile?.jwt}
listing_type="All"
label={$t('form.post.community')}
@@ -301,8 +301,8 @@
>
{#snippet prefix()}
<Avatar
url={data.community.icon}
alt={data.community.name}
url={data?.community?.icon}
alt={data.community?.name}
width={24}
/>
{/snippet}