Skip to content

Commit

Permalink
Add condition to not populate string value if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
FikriMilano committed Apr 23, 2024
1 parent 2d1d45d commit 6f652e1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ internal object QuestionnaireItemDialogSelectViewHolderFactory :
}
}
selectedOptions.otherOptions.map { otherOption ->
if (otherOption.isEmpty()) return@map
answers +=
QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent().apply {
value = StringType(otherOption)
Expand Down

0 comments on commit 6f652e1

Please sign in to comment.