Skip to content

Commit

Permalink
fix: remove unused reset function from EditPortalForm component
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Nov 25, 2024
1 parent a6dbde8 commit 6172523
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const EditPortalForm = (props: {
formState: { errors, isSubmitting, touchedFields },
watch,
setValue,
reset,
} = useForm<PortalInputs>({
resolver: zodResolver(portalEditInputSchema),
defaultValues: {
Expand All @@ -80,7 +79,6 @@ export const EditPortalForm = (props: {

const onSubmit: SubmitHandler<PortalInputs> = async (editedPortal) => {
await updatePortal(editedPortal);
reset();
};

const [type, setType] = useState(contexts && contexts?.length > 0 ? 'context-portal' : 'app-portal');
Expand Down

0 comments on commit 6172523

Please sign in to comment.