diff --git a/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.html b/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.html
index 9e0059db..41b77216 100644
--- a/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.html
+++ b/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.html
@@ -662,16 +662,16 @@
{{'updatedem
|
+ *ngIf="dynamicDropDown[field.attributeName]">
-
{{ data.name }}
@@ -687,14 +687,14 @@ {{'updatedem
|
|
+ *ngIf="dynamicDropDown[field.attributeName]">
-
+
{{ data.name }}
diff --git a/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.ts b/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.ts
index 352f26ea..69c7a381 100644
--- a/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.ts
+++ b/resident-ui/src/app/feature/uinservices/updatedemographic/updatedemographic.component.ts
@@ -164,7 +164,7 @@ export class UpdatedemographicComponent implements OnInit, OnDestroy {
async ngOnInit() {
this.defaultJsonValue = { ...defaultJson }
- this.initialLocationCode = "MOR";
+ this.initialLocationCode = this.appConfigService.getConfig()["resident.update-uin.machine-zone-code"];
this.locCode = 5;
this.translateService.use(localStorage.getItem("langCode"));
this.supportedLanguages = ["eng"];
@@ -493,7 +493,8 @@ export class UpdatedemographicComponent implements OnInit, OnDestroy {
let filedNameForuserInput = (item.charAt(0).toLocaleLowerCase() + item.slice(1)).replace(" ", "")
if (typeof this.userInputValues[filedNameForuserInput] !== 'string') {
this.getUserPerfLang.forEach(lang => {
- this.userInputValues[filedNameForuserInput][lang] = ''
+ if(this.userInputValues[filedNameForuserInput])
+ this.userInputValues[filedNameForuserInput][lang] = ''
})
} else {
this.userInputValues[filedNameForuserInput] = ''
|