From: Chocobozzz Date: Mon, 17 Feb 2020 10:56:28 +0000 (+0100) Subject: Fix instance get config X-Git-Tag: v2.1.1~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=017fbe1855a9b3aea601595b10e62c681fbcdb17;p=oweals%2Fpeertube.git Fix instance get config --- diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index cdcbcb528..3997ce6db 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts @@ -159,8 +159,11 @@ export class ServerService { if (!this.configObservable) { this.configObservable = this.http.get(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()