diff --git a/packages/core/client/src/data-source/collection-field/CollectionField.tsx b/packages/core/client/src/data-source/collection-field/CollectionField.tsx index ca627dc96a..ccbdecae69 100644 --- a/packages/core/client/src/data-source/collection-field/CollectionField.tsx +++ b/packages/core/client/src/data-source/collection-field/CollectionField.tsx @@ -13,7 +13,7 @@ import { useDynamicComponentProps } from '../../hoc/withDynamicSchemaProps'; import { useComponent } from '../../schema-component'; import { useCollectionField } from './CollectionFieldProvider'; -export const CollectionField = connect((props) => { +const CollectionFieldInternalField = (props) => { const fieldSchema = useFieldSchema(); const { uiSchema } = useCollectionField(); const Component = useComponent( @@ -24,6 +24,10 @@ export const CollectionField = connect((props) => { if (!uiSchema) return null; return ; +}; + +export const CollectionField = connect((props) => { + return ; }); CollectionField.displayName = 'CollectionField';