react-hook-form
Advanced tools
Comparing version 0.4.0-beta.3 to 0.4.0-beta.4
@@ -335,3 +335,3 @@ import { useRef, useState, useEffect } from 'react'; | ||
if (validationSchema) { | ||
values = Object.values(allFields).map(({ ref }) => getFieldValue(allFields, ref)); | ||
values = Object.values(allFields).reduce((previous, { ref }) => (previous[ref.name] = getFieldValue(allFields, ref)), {}); | ||
localErrors = await validateWithSchema(validationSchema, values); | ||
@@ -338,0 +338,0 @@ console.log(values); |
@@ -337,3 +337,3 @@ 'use strict'; | ||
if (validationSchema) { | ||
values = Object.values(allFields).map(({ ref }) => getFieldValue(allFields, ref)); | ||
values = Object.values(allFields).reduce((previous, { ref }) => (previous[ref.name] = getFieldValue(allFields, ref)), {}); | ||
localErrors = await validateWithSchema(validationSchema, values); | ||
@@ -340,0 +340,0 @@ console.log(values); |
{ | ||
"name": "react-hook-form", | ||
"version": "0.4.0-beta.3", | ||
"version": "0.4.0-beta.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40393