Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#126 Hotfix for handling error in modal processing
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Mar 7, 2017
1 parent 0fb1376 commit cf74ba9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/app/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ class Modal extends Component {
dispatch(patch(
'window', relativeType, relativeDataId, null, null,
triggerField, {[response.data]: ''}
))
})
)).then(() => {
this.removeModal();
})
});
}else{
closeCallback && closeCallback(isNew);
this.removeModal();
}

closeCallback && closeCallback(isNew);
this.removeModal();
}

handleScroll = (event) => {
Expand Down

0 comments on commit cf74ba9

Please sign in to comment.