Skip to content
Snippets Groups Projects
Commit 35dc350c authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix: fix revoke error handling

parent cdeae73d
No related branches found
No related tags found
1 merge request!6Agree/Decline to work on a manuscript
......@@ -122,7 +122,10 @@ export const revokeReviewer = (invitationId, collectionId) => dispatch => {
dispatch(inviteRequest())
return remove(
`/collections/${collectionId}/invitations/${invitationId}`,
).then(() => dispatch(inviteSuccess()), err => dispatch(inviteError(err)))
).then(
() => dispatch(inviteSuccess()),
err => dispatch(inviteError(get(JSON.parse(err.response), 'error'))),
)
}
// reviewer decision actions
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment