🐛 Bug fixes of upload
This commit is contained in:
parent
4e2147b679
commit
2480dd9b6e
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user