diff --git a/packages/core/client/src/block-provider/TableBlockProvider.tsx b/packages/core/client/src/block-provider/TableBlockProvider.tsx index 4ef57799b5..7829612acb 100644 --- a/packages/core/client/src/block-provider/TableBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TableBlockProvider.tsx @@ -139,7 +139,7 @@ export const useTableBlockProps = () => { if (!ctx?.service?.loading) { field.value = []; field.value = ctx?.service?.data?.data; - field.setInitialValue(ctx?.service?.data?.data); + field?.setInitialValue(ctx?.service?.data?.data); field.data = field.data || {}; field.data.selectedRowKeys = ctx?.field?.data?.selectedRowKeys; field.componentProps.pagination = field.componentProps.pagination || {}; 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 14500788ee..ff27a8ee12 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 @@ -584,7 +584,7 @@ FormItem.Designer = function Designer() { }} /> )} - {form && !form?.readPretty && collectionField?.interface !== 'o2m' && !isPatternDisabled(fieldSchema) && ( + {form && !form?.readPretty && !isPatternDisabled(fieldSchema) && (