Skip to content

Commit

Permalink
Merge pull request #529 from Madhuravas/develop
Browse files Browse the repository at this point in the history
Added condition for undefined values in update my data
  • Loading branch information
aranaravi authored Oct 17, 2023
2 parents 5ad633f + c760e9c commit e148d80
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,11 @@ export class UpdatedemographicComponent implements OnInit, OnDestroy {
}else{
this.userInputValues[schema.attributeName] = {};
this.buildJSONData[schema.attributeName] = self.userInfo[schema.attributeName]
self.userInfo[schema.attributeName].forEach(item =>{
this.userInputValues[schema.attributeName][item.language] = ''
})
if(this.userInfo[schema.attributeName]){
self.userInfo[schema.attributeName].forEach(item =>{
this.userInputValues[schema.attributeName][item.language] = ''
})
}
}
}
}
Expand Down

0 comments on commit e148d80

Please sign in to comment.