From 2480dd9b6e6059ce69e98cd7c83625ad574e9c4a Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 12 Feb 2024 21:11:41 +0800 Subject: [PATCH] :bug: Bug fixes of upload --- pkg/view/src/components/posts/PostEditActions.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/view/src/components/posts/PostEditActions.tsx b/pkg/view/src/components/posts/PostEditActions.tsx index 69c8e3e..205ced6 100644 --- a/pkg/view/src/components/posts/PostEditActions.tsx +++ b/pkg/view/src/components/posts/PostEditActions.tsx @@ -41,6 +41,7 @@ export default function PostEditActions(props: { } else { const data = await res.json(); setAttachments(attachments().concat([data.info])); + props.onInputAttachments(attachments()); props.onError(null); form.reset(); }