re-fix error message
This commit is contained in:
parent
6c14cd1e5b
commit
4d6d1f2e95
1 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch:
|
|||
return text;
|
||||
};
|
||||
|
||||
const uploadError = (error: string = '') =>
|
||||
const uploadError = (error = '') =>
|
||||
dispatch(
|
||||
batchActions(
|
||||
{
|
||||
|
@ -104,9 +104,9 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch:
|
|||
thumbnail: `${json.data.url}${fileExt}`,
|
||||
},
|
||||
})
|
||||
: uploadError(['Upload failed'])
|
||||
: uploadError('Upload failed')
|
||||
)
|
||||
.catch(err => uploadError([err.message]));
|
||||
.catch(err => uploadError(err.message));
|
||||
};
|
||||
|
||||
export const doPrepareEdit = (claim: any) => (dispatch: Dispatch) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue