Skip to content

Commit

Permalink
fix(core): catch/handle confirmation modal dismissal (#7758)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
anotherchrisberry and mergify[bot] committed Jan 10, 2020
1 parent 1882a1e commit 19ff2aa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export class ConfirmationModalService {

ReactModal.show(ConfirmModal, extendedParams).then(deferred.resolve, deferred.reject);

// modal was dismissed
deferred.promise.catch(() => {});

return deferred.promise;
}
}
Expand Down

0 comments on commit 19ff2aa

Please sign in to comment.