We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9732ac4 commit 827b8f3Copy full SHA for 827b8f3
src/Common/RJSF/templates/ObjectFieldTemplate.tsx
@@ -53,9 +53,8 @@ const Field = ({
53
if (!hiddenSchemaProp) {
54
return true
55
}
56
- const isHidden =
57
- // NOTE: if json is null, then JSONPath will return undefined; hence the ?
58
- hiddenSchemaProp.condition === JSONPath({ path: hiddenSchemaProp.match, json: formData })?.[0]
+ const value = JSONPath({ path: hiddenSchemaProp.match, json: formData })?.[0]
+ const isHidden = value === undefined || hiddenSchemaProp.condition === value
59
// NOTE: if should be hidden then filter it out i.e return false
60
return !isHidden
61
})
0 commit comments