diff --git a/client/src/app/shared/_classes/app-config.class.ts b/client/src/app/shared/_classes/app-config.class.ts index 8a9480f49e..6b6b6a7b8a 100644 --- a/client/src/app/shared/_classes/app-config.class.ts +++ b/client/src/app/shared/_classes/app-config.class.ts @@ -1,5 +1,9 @@ export class AppConfig { + constructor(data) { + Object.assign(this, data) + } + // // Tangerine Flavor // diff --git a/client/src/app/shared/_services/app-config.service.ts b/client/src/app/shared/_services/app-config.service.ts index fe200fe7e3..5cb6a06a9d 100755 --- a/client/src/app/shared/_services/app-config.service.ts +++ b/client/src/app/shared/_services/app-config.service.ts @@ -34,7 +34,7 @@ export class AppConfigService { ) { } async getAppConfig():Promise { - this.config = this.config ? this.config : await this.http.get('./assets/app-config.json').toPromise(); + this.config = this.config ? this.config : new AppConfig(await this.http.get('./assets/app-config.json').toPromise()) return this.config; }