Skip to content

Commit 8c4fd56

Browse files
committed
fix(navPush): unhandled promise exception
1 parent b995ca8 commit 8c4fd56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/nav/nav-push.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export class NavPush {
7272
@HostListener('click')
7373
onClick(): boolean {
7474
if (this._nav && this.navPush) {
75-
this._nav.push(this.navPush, this.navParams, null);
75+
this._nav.push(this.navPush, this.navParams).catch(() => {
76+
console.debug('navPush was rejected');
77+
});
7678
return false;
7779
}
7880
return true;

0 commit comments

Comments
 (0)