Skip to content

Commit

Permalink
fix(Form): use parsed value from joi instead of original state (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjanuar authored Nov 11, 2024
1 parent 1fd5fac commit acecff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/forms/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ async function validateJoiSchema(
schema: JoiSchema
): Promise<ValidateReturnSchema<typeof state>> {
try {
await schema.validateAsync(state, { abortEarly: false })
const result = await schema.validateAsync(state, { abortEarly: false })
return {
errors: null,
result: state
result
}
} catch (error) {
if (isJoiError(error)) {
Expand Down

0 comments on commit acecff4

Please sign in to comment.