Skip to content

Commit

Permalink
Fix onchange reading option label
Browse files Browse the repository at this point in the history
  • Loading branch information
kurukimi committed Jun 19, 2024
1 parent 3d5c98c commit aa75764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/entry-dialog/DimensionComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DimensionComboBox = <T extends FieldValues>({
render={({ field: { value, onChange } }) => (
<Autocomplete
value={value}
onChange={(_, value) => onChange(value)}
onChange={(_, value) => onChange(value.label || value)}
options={options}
autoHighlight
renderInput={(params) => (
Expand Down

0 comments on commit aa75764

Please sign in to comment.