Fix another random builder crash that sometimes happens

This commit is contained in:
Andrew Kingston 2020-10-13 08:12:29 +01:00
parent d7ab7c6ec9
commit bf7356b508
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']) }} />