Skip to content

Commit

Permalink
radio selector now adds its defaultValue to editData
Browse files Browse the repository at this point in the history
  • Loading branch information
juhanikat committed Oct 17, 2024
1 parent e75c467 commit f3ea09c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const RadioSelector = <T extends object>({
defaultValue = getValue(options[0])
}
if (editData[field] === null) {
setEditData({ ...editData, [field]: getValue(options[0]) })
setEditData({ ...editData, [field]: defaultValue })
}
const editingComponent = (
<FormControl>
Expand Down

0 comments on commit f3ea09c

Please sign in to comment.