Skip to content

Commit

Permalink
fix(core): catch dismiss of confirmation/cancel modals (#4250)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry authored Oct 12, 2017
1 parent 4de48ba commit eccc3cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export class CancelModalService {
}
};

return this.$uibModal.open(modalArgs).result;
const result = this.$uibModal.open(modalArgs).result;

result.catch(() => {});

return result;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export class ConfirmationModalService {
if (params.size) {
modalArgs.size = params.size;
}
return this.$uibModal.open(modalArgs).result;

const result = this.$uibModal.open(modalArgs).result;

result.catch(() => {});

return result;
}

}
Expand Down

0 comments on commit eccc3cf

Please sign in to comment.