Improve how errors are displayed in the UI
This commit is contained in:
@ -43,7 +43,6 @@ export function submitCompose() {
|
||||
}).then(function (response) {
|
||||
dispatch(submitComposeSuccess(response.data));
|
||||
}).catch(function (error) {
|
||||
console.error(error);
|
||||
dispatch(submitComposeFail(error));
|
||||
});
|
||||
};
|
||||
@ -83,7 +82,6 @@ export function uploadCompose(files) {
|
||||
}).then(function (response) {
|
||||
dispatch(uploadComposeSuccess(response.data));
|
||||
}).catch(function (error) {
|
||||
console.error(error);
|
||||
dispatch(uploadComposeFail(error));
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user