From a1825bbbe6d0c103e817ef9123d123dd3ad9cc0b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 4 Dec 2022 19:26:02 +0100 Subject: [PATCH] #7588 --- tabby-core/src/services/selector.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-core/src/services/selector.service.ts b/tabby-core/src/services/selector.service.ts index 5687ec7d..717179e6 100644 --- a/tabby-core/src/services/selector.service.ts +++ b/tabby-core/src/services/selector.service.ts @@ -21,7 +21,7 @@ export class SelectorService { show (name: string, options: SelectorOption[]): Promise { const modal = this.ngbModal.open(SelectorModalComponent) this.current = modal - modal.result.then(() => { + modal.result.finally(() => { this.current = null }) const instance: SelectorModalComponent = modal.componentInstance