diff --git a/frontend/src/app/config.service.ts b/frontend/src/app/config.service.ts index 3d985cd..fa69b3f 100644 --- a/frontend/src/app/config.service.ts +++ b/frontend/src/app/config.service.ts @@ -35,14 +35,18 @@ export class ConfigService { } getConfig(): Observable { - if (this.config && this.observable) { + if (this.config) { return new Observable(observer => { observer.next(this.config); observer.complete(); }); - } else { - return (this.observable = this.loadConfig()); } + + if (this.observable) { + return this.observable; + } + + return (this.observable = this.loadConfig()); } private loadConfig(): Observable {