fix: delete try catch in try catch...
This commit is contained in:
@@ -488,18 +488,19 @@ class EditSightStore {
|
|||||||
formData.append("media_name", media_name);
|
formData.append("media_name", media_name);
|
||||||
}
|
}
|
||||||
formData.append("type", type.toString());
|
formData.append("type", type.toString());
|
||||||
try {
|
|
||||||
const response = await authInstance.post(`/media`, formData);
|
const response = await authInstance.post(`/media`, formData);
|
||||||
this.fileToUpload = null;
|
this.fileToUpload = null;
|
||||||
this.uploadMediaOpen = false;
|
this.uploadMediaOpen = false;
|
||||||
mediaStore.getMedia();
|
|
||||||
return {
|
mediaStore.getMedia();
|
||||||
id: response.data.id,
|
|
||||||
filename: filename,
|
return {
|
||||||
media_name: media_name,
|
id: response.data.id,
|
||||||
media_type: type,
|
filename: filename,
|
||||||
};
|
media_name: media_name,
|
||||||
} catch (error) {}
|
media_type: type,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
createLinkWithArticle = async (media: {
|
createLinkWithArticle = async (media: {
|
||||||
|
|||||||
Reference in New Issue
Block a user