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();
return (
<CollectionFieldProvider name={fieldSchema.name} allowNull={!fieldSchema['x-collection-field']}>
<ACLCollectionFieldProvider>
<BlockItem className={'nb-form-item'}>
<BlockItem className={'nb-form-item'}>
<CollectionFieldProvider name={fieldSchema.name} allowNull={!fieldSchema['x-collection-field']}>
<ACLCollectionFieldProvider>
<Item className={className} {...props} extra={extra} />
</BlockItem>
</ACLCollectionFieldProvider>
</CollectionFieldProvider>
</ACLCollectionFieldProvider>
</CollectionFieldProvider>
</BlockItem>
);
},
{ displayName: 'FormItem' },