Fix instance get config

pull/2712/head
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) { if (!this.configObservable) {
this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL) this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL)
.pipe( .pipe(
tap(this.saveConfigLocally), tap(config => this.saveConfigLocally(config)),
tap(() => this.configLoaded = true), tap(config => {
this.config = config
this.configLoaded = true
}),
tap(() => { tap(() => {
if (this.configReset) { if (this.configReset) {
this.configReloaded.next() this.configReloaded.next()