fix: grid schema (#4157)

This commit is contained in:
katherinehhh 2024-04-25 11:38:22 +08:00 committed by GitHub
parent 205984b812
commit 343b97de14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -439,16 +439,7 @@ Grid.Row = observer(
{cols.map((schema, index) => {
return (
<React.Fragment key={index}>
<MemorizedRecursionField
name={schema.name}
schema={schema}
mapProperties={(schema) => {
if (type === 'update') {
schema.default = null;
}
return schema;
}}
/>
<MemorizedRecursionField name={schema.name} schema={schema} />
{showDivider && (
<ColDivider
cols={cols}