Skip to content

Commit

Permalink
UPDATE deleteItem action with custom error message (#4683)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecuencoJones authored and autoboxer committed Dec 19, 2018
1 parent 17976c3 commit 8455fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/client/App/screens/Item/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function deleteItem (id, router) {
}
// TODO Proper error handling
if (err) {
alert('Error deleting item, please try again!');
alert(err.error || 'Error deleting item, please try again!');
} else {
dispatch(loadItems());
}
Expand Down

0 comments on commit 8455fd5

Please sign in to comment.