Skip to content

Commit

Permalink
Now converts selectLine value to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Maik Mursall committed Aug 10, 2022
1 parent 01350da commit 663a8c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ fun SelectLine(formData: SelectLineData) {
is JsonArray -> {
textFieldValue =
TextFieldValue(formData.options.jsonArray[index].jsonPrimitive.content)
formData.value = JsonPrimitive(index)

// The backend expects strings
formData.value = JsonPrimitive(index.toString())
}
is JsonObject -> {
textFieldValue = TextFieldValue(
Expand Down

0 comments on commit 663a8c9

Please sign in to comment.