Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Jan 14, 2025
1 parent bb520b9 commit e9e18d8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ export default function SearchApplyMarker() {
});

const { handleSubmit, Field, Subscribe } = useForm({
onSubmit: async ({ value, formApi }) => {
onSubmit: async ({ value }) => {
try {
console.log(value);
await bulkCreate.mutateAsync(value);
// formApi.reset();
} catch (e) {
// console.log(e);
console.log(e);
toast.error("There was an error!");
}
},
defaultValues: {
Expand Down

0 comments on commit e9e18d8

Please sign in to comment.