small refactor

This commit is contained in:
Bowen Tan 2021-11-23 14:31:57 +08:00
parent 84aa6e98c5
commit 83b559d913

View File

@ -20,7 +20,7 @@ const ObjectField: React.FC<Props> = props => {
key={name}
schema={subSchema}
label={subSchema.title || name}
formData={formData ? formData[name] : undefined}
formData={formData?.[name]}
onChange={value =>
onChange({
...formData,