Skip to content

Commit

Permalink
dropdown value translate (#487)
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin S P <[email protected]>
Co-authored-by: Sachin S P <[email protected]>
  • Loading branch information
SachinPremkumar and Sachin S P authored Nov 13, 2024
1 parent b03f259 commit 0c0470a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/ui/process_ui/widgets/dropdown_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class _CustomDropDownState extends State<DropDownControl> {
temp.forEach((element) {
if (element!.code == value.code && element.langCode == code) {
registrationTaskProvider.addSimpleTypeDemographicField(
widget.field.id ?? "", value.name, code);
registrationTaskProvider.addSelectedCode(widget.field.id ?? "", value.code);
widget.field.id ?? "", element.name, code);
registrationTaskProvider.addSelectedCode(widget.field.id ?? "", element.code);
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/process_ui/widgets/dynamic_dropdown_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class _CustomDynamicDropDownState extends State<DynamicDropDownControl> {
temp.forEach((element) {
if (element!.code == value.code && element.langCode == code) {
registrationTaskProvider.addSimpleTypeDemographicField(
widget.field.id ?? "", value.name, code);
registrationTaskProvider.addSelectedCode(widget.field.id ?? "", value.code);
widget.field.id ?? "", element.name, code);
registrationTaskProvider.addSelectedCode(widget.field.id ?? "", element.code);
}
});
}
Expand Down

0 comments on commit 0c0470a

Please sign in to comment.