From 68662898951a9c44dd87bebab9081ee6a986652c Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 25 Sep 2019 13:10:41 +0100 Subject: [PATCH] fixed build warn !wip --- src/Ombi/ClientApp/app/login/login.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ombi/ClientApp/app/login/login.component.ts b/src/Ombi/ClientApp/app/login/login.component.ts index 67105f225..957ced058 100644 --- a/src/Ombi/ClientApp/app/login/login.component.ts +++ b/src/Ombi/ClientApp/app/login/login.component.ts @@ -157,7 +157,9 @@ export class LoginComponent implements OnDestroy, OnInit { if (this.authService.loggedIn()) { this.ngOnDestroy(); - this.oAuthWindow.close(); + if(this.oAuthWindow) { + this.oAuthWindow.close(); + } this.router.navigate(["search"]); return; }