🐛 Bug fixes of upload

This commit is contained in:
LittleSheep 2024-02-12 21:11:41 +08:00
parent 4e2147b679
commit 2480dd9b6e

View File

@ -41,6 +41,7 @@ export default function PostEditActions(props: {
} else { } else {
const data = await res.json(); const data = await res.json();
setAttachments(attachments().concat([data.info])); setAttachments(attachments().concat([data.info]));
props.onInputAttachments(attachments());
props.onError(null); props.onError(null);
form.reset(); form.reset();
} }