From a6a9c149dc8fa15fe378f60c91344d8a6734d2bc Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 10 Jan 2022 20:45:54 +0100 Subject: [PATCH] fixed incorrect await --- tabby-core/src/services/config.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabby-core/src/services/config.service.ts b/tabby-core/src/services/config.service.ts index c5973a6d..7baaf926 100644 --- a/tabby-core/src/services/config.service.ts +++ b/tabby-core/src/services/config.service.ts @@ -2,7 +2,7 @@ import deepClone from 'clone-deep' import deepEqual from 'deep-equal' import { v4 as uuidv4 } from 'uuid' import * as yaml from 'js-yaml' -import { Observable, Subject, AsyncSubject } from 'rxjs' +import { Observable, Subject, AsyncSubject, lastValueFrom } from 'rxjs' import { Injectable, Inject } from '@angular/core' import { TranslateService } from '@ngx-translate/core' import { ConfigProvider } from '../api/configProvider' @@ -196,7 +196,7 @@ export class ConfigService { } async save (): Promise { - await this.ready$ + await lastValueFrom(this.ready$) if (!this._store) { throw new Error('Cannot save an empty store') }