Fix another random builder crash that sometimes happens

This commit is contained in:
Andrew Kingston 2020-10-13 08:12:29 +01:00
parent 72676623b8
commit 08de0812fc
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@
control={definition.control} control={definition.control}
label={definition.label} label={definition.label}
key={definition.key} key={definition.key}
value={componentInstance[definition.key] || componentInstance[definition.key].defaultValue} value={componentInstance[definition.key] || componentInstance[definition.key]?.defaultValue}
{componentInstance} {componentInstance}
{onChange} {onChange}
props={{ ...excludeProps(definition, ['control', 'label']) }} /> props={{ ...excludeProps(definition, ['control', 'label']) }} />