diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx index 88806f22d..584de96a9 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx @@ -538,7 +538,7 @@ FormItem.Designer = function Designer() { )} {form && !form?.readPretty && - ['o2m', 'm2m'].includes(collectionField.interface) && + ['o2m', 'm2m'].includes(collectionField?.interface) && fieldSchema['x-component'] !== 'TableField' && (