fix: should display settings after field deleted (#3606)

This commit is contained in:
Zeke Zhang 2024-03-05 19:30:59 +08:00 committed by GitHub
parent c5dd034452
commit a37195eb4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,13 +70,13 @@ export const FormItem: any = observer(
const fieldSchema = useFieldSchema(); const fieldSchema = useFieldSchema();
return ( return (
<BlockItem className={'nb-form-item'}>
<CollectionFieldProvider name={fieldSchema.name} allowNull={!fieldSchema['x-collection-field']}> <CollectionFieldProvider name={fieldSchema.name} allowNull={!fieldSchema['x-collection-field']}>
<ACLCollectionFieldProvider> <ACLCollectionFieldProvider>
<BlockItem className={'nb-form-item'}>
<Item className={className} {...props} extra={extra} /> <Item className={className} {...props} extra={extra} />
</BlockItem>
</ACLCollectionFieldProvider> </ACLCollectionFieldProvider>
</CollectionFieldProvider> </CollectionFieldProvider>
</BlockItem>
); );
}, },
{ displayName: 'FormItem' }, { displayName: 'FormItem' },