Skip to content

Commit

Permalink
Merge pull request #329 from GOKULRAJ136/dev-new
Browse files Browse the repository at this point in the history
MOSIP-23873 : Clearing off lower location hierarchy fields while higher location hierarchy value changed
  • Loading branch information
aranaravi authored Sep 25, 2024
2 parents e266c9b + acf0950 commit 6dda4a9
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,12 @@ export class CreateComponent {
fieldName = this.locationFieldNameList[parseInt(index)+1];
locationCode = event.value;
this.dynamicFieldValue[this.locationFieldNameList[parseInt(index)]] = event.value;

/*for (let i = parseInt(index)+1; i < this.locationFieldNameList.length; i++) {
this.dynamicFieldValue[this.locationFieldNameList[parseInt(index)+1]] = [];
}*/
}
if (index > 0) {
for (let i = index + 1; i < this.locationFieldNameList.length; i++) {
this.dynamicFieldValue[this.locationFieldNameList[i]] = "";
this.dynamicDropDown[this.locationFieldNameList[i]] = [];
}
}
this.dataStorageService
.getImmediateChildren(locationCode, this.primaryLang)
Expand Down

0 comments on commit 6dda4a9

Please sign in to comment.