Skip to content

Commit

Permalink
MOSIP-23873 : Clearing off lower hierarchy fields while higher hierar…
Browse files Browse the repository at this point in the history
…chy value changed

Signed-off-by: GOKULRAJ136 <[email protected]>
  • Loading branch information
GOKULRAJ136 committed Sep 25, 2024
1 parent e266c9b commit acf0950
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 acf0950

Please sign in to comment.