mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-15 00:50:03 +00:00
fixed incorrect await
This commit is contained in:
parent
61c11abda2
commit
a6a9c149dc
@ -2,7 +2,7 @@ import deepClone from 'clone-deep'
|
|||||||
import deepEqual from 'deep-equal'
|
import deepEqual from 'deep-equal'
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
import * as yaml from 'js-yaml'
|
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 { Injectable, Inject } from '@angular/core'
|
||||||
import { TranslateService } from '@ngx-translate/core'
|
import { TranslateService } from '@ngx-translate/core'
|
||||||
import { ConfigProvider } from '../api/configProvider'
|
import { ConfigProvider } from '../api/configProvider'
|
||||||
@ -196,7 +196,7 @@ export class ConfigService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async save (): Promise<void> {
|
async save (): Promise<void> {
|
||||||
await this.ready$
|
await lastValueFrom(this.ready$)
|
||||||
if (!this._store) {
|
if (!this._store) {
|
||||||
throw new Error('Cannot save an empty store')
|
throw new Error('Cannot save an empty store')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user