Skip to content

Commit

Permalink
Merge pull request #121 from watershed-climate/sterling-06-16-use_the…
Browse files Browse the repository at this point in the history
…_resolved_data_in_dubmit

use the resolved data in submit
  • Loading branch information
iway1 authored Jun 18, 2023
2 parents fe3102b + f557eb6 commit 23c2cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createSchemaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ function useSubmitter<SchemaType extends RTFFormSchemaType>({
async (e) => {
const errorKeys = Object.keys(e.errors);
if (!errorKeys.length) {
await onSubmit(data);
await onSubmit(e.values);
return;
}
for (const key of errorKeys) {
Expand Down

1 comment on commit 23c2cf2

@vercel
Copy link

@vercel vercel bot commented on 23c2cf2 Jun 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.