From 650bac70b33523a5af4397b2dd27ab2d182dc7cb Mon Sep 17 00:00:00 2001 From: GurukiranP Date: Tue, 12 Mar 2024 10:45:34 +0530 Subject: [PATCH] [MOSIP-22677] Fixed admin-ui version display issue. Signed-off-by: GurukiranP --- admin-ui/src/app/core/header/header.component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/admin-ui/src/app/core/header/header.component.ts b/admin-ui/src/app/core/header/header.component.ts index 552533cc..9c9e4b44 100644 --- a/admin-ui/src/app/core/header/header.component.ts +++ b/admin-ui/src/app/core/header/header.component.ts @@ -37,7 +37,7 @@ export class HeaderComponent implements OnInit { }; zone: string; - appVersion :""; + appVersion : string; popupMessages: any; serverError: any; constructor( @@ -53,12 +53,12 @@ export class HeaderComponent implements OnInit { this.popupMessages = response; this.serverError = response.serverError; }); - this.appVersion = appConfigService.getConfig()['version']; + setTimeout(() => { + this.appVersion = this.appConfigService.getConfig()['version']; + }, 1) } ngOnInit() { - console.log(this.appVersion); - console.log('SreenWidth', this.screenResize); if (this.headerService.getUsername() !== '') { this.dataService .getLoggedInUserZone( @@ -67,7 +67,6 @@ export class HeaderComponent implements OnInit { ) .subscribe(response => { if (response.response) { - console.log(response.response.zoneName); this.zone = response.response.zoneName; }else{ this.dialog