Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Migrated to new ApiClient's behaviour (throws exceptions)
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Nov 1, 2016
1 parent 04136c4 commit 6d90d67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/triggers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,7 @@ export class ActionsTrigger {
success = true;
}
} catch (e) {
if ('error' in e.response) {
this.dispatch(a.messages.addError(e.response.error));
} else {
this.dispatch(a.messages.addError(e.message));
}
this.dispatch(a.messages.addError(e.message));
}

return success;
Expand Down

0 comments on commit 6d90d67

Please sign in to comment.