Skip to content

Commit f8c7468

Browse files
SvetoslavTsenovmanoldonev
authored andcommitted
fix: crash in deactivate page router outlet (#1590)
1 parent 94c534c commit f8c7468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: nativescript-angular/router/page-router-outlet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
203203
}
204204

205205
deactivate(): void {
206-
if (!this.outlet.isPageNavigationBack) {
206+
if (!this.outlet || !this.outlet.isPageNavigationBack) {
207207
if (isLogEnabled()) {
208208
log("Currently not in page back navigation - component should be detached instead of deactivated.");
209209
}

0 commit comments

Comments
 (0)