fix: fix posts not working
This commit is contained in:
1 parent
e54031faae
commit
013d2341f9
4 files changed
+5
-4
No files matched your search
@@ -69,7 +69,7 @@
|
||||
</script>
|
||||
|
||||
{#if editing}
|
||||
<Modal bind:open={editing}>
|
||||
<Modal bind:open={editing} class="max-w-[90vw] w-[34rem]">
|
||||
<PostForm
|
||||
edit
|
||||
editingPost={post.post}
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
dispatcher('submit', post.post_view)
|
||||
} else {
|
||||
let image = data.image ? await uploadImage(data.image[0]) : undefined
|
||||
data.url = image || data.url
|
||||
data.url = image || data.url || undefined
|
||||
const post = await getClient().createPost({
|
||||
auth: $authData.token,
|
||||
community_id: data.community!,
|
||||
|
||||
Reference in new issue
Block a user