mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
small refactor
This commit is contained in:
parent
84aa6e98c5
commit
83b559d913
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user