Fix another evil falsiness bug with setting checkboxes

This commit is contained in:
Andrew Kingston 2020-11-03 10:09:41 +00:00
parent bcc86af4b4
commit ff15205277
1 changed files with 1 additions and 1 deletions

View File

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