Skip to content

Commit

Permalink
fix(navPush): unhandled promise exception
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jan 20, 2017
1 parent b995ca8 commit 8c4fd56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/nav/nav-push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export class NavPush {
@HostListener('click')
onClick(): boolean {
if (this._nav && this.navPush) {
this._nav.push(this.navPush, this.navParams, null);
this._nav.push(this.navPush, this.navParams).catch(() => {
console.debug('navPush was rejected');
});
return false;
}
return true;
Expand Down

0 comments on commit 8c4fd56

Please sign in to comment.