diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx index afbe503c9..afa4f5114 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx @@ -44,7 +44,7 @@ export const TableColumnDesigner = (props) => { const { currentMode, field: tableField } = useAssociationFieldContext(); const defaultFilter = fieldSchema?.['x-component-props']?.service?.params?.filter || {}; const dataSource = useCollectionFilterOptions(collectionField?.target); - const isDateField = ['datetime', 'createdAt', 'updatedAt'].includes(collectionField.interface); + const isDateField = ['datetime', 'createdAt', 'updatedAt'].includes(collectionField?.interface); let readOnlyMode = 'editable'; if (fieldSchema['x-disabled'] === true) { readOnlyMode = 'readonly'; @@ -326,9 +326,8 @@ export const TableColumnDesigner = (props) => { )} {isDateField && } - {isSubTableColumn && !field?.readPretty && isShowDefaultValue(collectionField, getInterface) && ( - + )}