Skip to content

Commit

Permalink
chore: Use destructed control var
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Apr 4, 2024
1 parent 6f25db9 commit 35ace8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const TenantForm = ({ initialData, onSubmit, error, loading }: TenantForm
form: {
register,
formState: { errors },
control,
},
form,
genericError,
Expand All @@ -39,7 +40,7 @@ export const TenantForm = ({ initialData, onSubmit, error, loading }: TenantForm
<Form {...form}>
<form className="flex flex-col" onSubmit={handleFormSubmit}>
<FormField
control={form.control}
control={control}
name="name"
render={({ field }) => (
<FormItem>
Expand Down

0 comments on commit 35ace8a

Please sign in to comment.