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
TypeError: Cannot read properties of null (reading '__errors')
at (../node_modules/@rjsf/core/src/components/Form.tsx:611:79)
at iteratee (../node_modules/lodash/_createBaseFor.js:17:10)
at baseFor (../node_modules/lodash/_baseForOwn.js:13:19)
at eachFunc (../node_modules/lodash/_createBaseEach.js:17:13)
at func (../node_modules/lodash/forEach.js:38:9)
at errors (../node_modules/@rjsf/core/src/components/Form.tsx:608:15)
at filterUndefinedErrors (../node_modules/@rjsf/core/src/components/Form.tsx:612:10)
at iteratee (../node_modules/lodash/_createBaseFor.js:17:10)
at baseFor (../node_modules/lodash/_baseForOwn.js:13:19)
at eachFunc (../node_modules/lodash/_createBaseEach.js:17:13)
…ma()
Fixesrjsf-team#4306 by using `lodash.isNil()` instead of comparing to `undefined`
- Updated `Form.filterErrorsBasedOnSchema()` to use lodash `isNil()` to check if the key is either null or undefined
- Updated the `CHANGELOG.md` accordingly
Prerequisites
What theme are you using?
core
Version
5.20.0
Current Behavior
We noticed the following error:
Expected Behavior
No error
Steps To Reproduce
So far I've been unable to reproduce this issue.
But based on the stacktrace I could pinpoint it to this location:
4d3094c#diff-704dadefdc8b52ac02d6712540e5734214e9699c66d1d673ded1c57e96df9303R611
Looks like this was newly introduced with version 5.20.0
Environment
Anything else?
Proposed solution:
undefined
in line 609 of Form.tsx with a lodashisNil
call insteadThe text was updated successfully, but these errors were encountered: