Improve how errors are displayed in the UI
This commit is contained in:
parent
aea151a0de
commit
f88b8ce757
11 changed files with 54 additions and 80 deletions
|
@ -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));
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue