Skip to content

Commit

Permalink
fix: satisfy compiler by overruling type from react-hook-form
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelblijleven committed Jan 7, 2024
1 parent da12ce3 commit 086aed4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/forms/bean-information-form/fieldsets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ export function MoreInformationFieldset({form}: FieldsetProps) {
name={"notes"}
render={({field}) => (
<FormItemWrapper label={"Notes"}>
<Textarea onChange={field.onChange} value={field.value} placeholder={"Enter some notes"} />
<Textarea
onChange={field.onChange}
value={field.value as string | undefined}
placeholder={"Enter some notes"}
/>
</FormItemWrapper>
)}
/>
Expand Down

0 comments on commit 086aed4

Please sign in to comment.