Fix instance get config

This commit is contained in:
Chocobozzz 2020-02-17 11:56:28 +01:00
parent ec10e8ed5b
commit 017fbe1855
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 2 deletions

View File

@ -159,8 +159,11 @@ export class ServerService {
if (!this.configObservable) {
this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL)
.pipe(
tap(this.saveConfigLocally),
tap(() => this.configLoaded = true),
tap(config => this.saveConfigLocally(config)),
tap(config => {
this.config = config
this.configLoaded = true
}),
tap(() => {
if (this.configReset) {
this.configReloaded.next()