From be0aeefdb3c7ac3b35704d2bf24d79ec8db07503 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 6 Aug 2021 09:52:37 +0200 Subject: [PATCH] Update baseTerminalTab.component.ts --- tabby-terminal/src/api/baseTerminalTab.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tabby-terminal/src/api/baseTerminalTab.component.ts b/tabby-terminal/src/api/baseTerminalTab.component.ts index 29dd5315..4d6ccde7 100644 --- a/tabby-terminal/src/api/baseTerminalTab.component.ts +++ b/tabby-terminal/src/api/baseTerminalTab.component.ts @@ -315,12 +315,12 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit setImmediate(async () => { if (this.hasFocus) { - await this.frontend!.attach(this.content.nativeElement) - this.frontend!.configure() + await this.frontend?.attach(this.content.nativeElement) + this.frontend?.configure() } else { this.focused$.pipe(first()).subscribe(async () => { - await this.frontend!.attach(this.content.nativeElement) - this.frontend!.configure() + await this.frontend?.attach(this.content.nativeElement) + this.frontend?.configure() }) } })