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
If an input from a React component is returned to Winterfell with an undefined value. A deprecation warning is thrown.
validator deprecated you tried to validate an undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. node_modules/winterfell/dist/lib/validation.js:70:27
The simplest fix would be to coerce the value to an empty string in /src/lib/validation.js. So that lines 36 and 37 change from this:
Yeah for sure. This entire set of logic is awful and should be split out ideally. Also, it's ideal to not use the built in validator if you're validating against other types, when using selects etc.
Happy to accept a PR for this, from anyone, or will keep it open until it's something I can look at!
If an input from a React component is returned to Winterfell with an undefined value. A deprecation warning is thrown.
The simplest fix would be to coerce the value to an empty string in
/src/lib/validation.js
. So that lines 36 and 37 change from this:To this:
The text was updated successfully, but these errors were encountered: