Skip to content

Commit

Permalink
Update utils.js
Browse files Browse the repository at this point in the history
Null values in properties were being left thru by an insufficient type check
  • Loading branch information
titus-toia authored Jan 20, 2025
1 parent c80d9b0 commit fcc29c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/components/dependent/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const getDependentFields = props => {

const value = props[name]

if( typeof value === 'object' && ! Array.isArray(value) ) {
if( value && typeof value === 'object' && ! Array.isArray(value) ) {

const subfields = getDependentFields(value)
const hasSubfields = Object.keys(subfields).length === 0
Expand Down

0 comments on commit fcc29c2

Please sign in to comment.