diff --git a/assets/src/components/dependent/utils.js b/assets/src/components/dependent/utils.js index 3ffbe31..0e3bd3d 100644 --- a/assets/src/components/dependent/utils.js +++ b/assets/src/components/dependent/utils.js @@ -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