fix: resolve potential exception during bulk image upload in post creation (#6276)

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang
2024-07-05 18:21:46 +08:00
committed by GitHub
parent 104bd3e44e
commit ed5f9aeb50
3 changed files with 0 additions and 10 deletions

View File

@@ -456,10 +456,6 @@ async function handleUploadImage(file: File, options?: AxiosRequestConfig) {
return;
}
if (!isUpdateMode.value) {
await handleSave();
}
const { data } = await ucApiClient.storage.attachment.createAttachmentForPost(
{
file,