You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using react hook form and trying to use the functionality where you can nest objects. The use case is for one field that contains several related checkboxes. When validating a nested object an uncaught error is thrown because entry is undefined on line 56 of NopeObject.js.
To Reproduce
Steps to reproduce the behavior:
Include the code and entry
Expected behavior
The above should skip undefined when validating objects that aren't required. Required functionality would also be nice if possible for NopeObject.js.
Environment (please complete the following information):
Browser/Node version
Chrome/v14.15.0
Additional context
The optional object in our case is a legal requirement. Based on another field this field will show. That's why it would be nice to have this check if the object is undefined on the line mentioned above.
The text was updated successfully, but these errors were encountered:
I'm trying to reproduce and I couldn't, can you take a look at this file that I created to exemplify or create one where the error happens?
By default, when a schema validates our data, we return undefined if there are no errors, this is exactly what happens in my example above (in the shared link).
Describe the bug
I'm using react hook form and trying to use the functionality where you can nest objects. The use case is for one field that contains several related checkboxes. When validating a nested object an uncaught error is thrown because
entry
is undefined on line 56 ofNopeObject.js
.To Reproduce
Steps to reproduce the behavior:
Include the code and entry
Validation code:
Entry Example 1:
Entry Example 2:
Expected behavior
The above should skip undefined when validating objects that aren't required. Required functionality would also be nice if possible for NopeObject.js.
Environment (please complete the following information):
Chrome/v14.15.0
Additional context
The optional object in our case is a legal requirement. Based on another field this field will show. That's why it would be nice to have this check if the object is undefined on the line mentioned above.
The text was updated successfully, but these errors were encountered: