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(); }