diff --git a/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx index ce8894ba2..240876a10 100644 --- a/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TableColumnInitializers.tsx @@ -87,12 +87,20 @@ export const tableColumnInitializers = new SchemaInitializer({ { name: 'divider', type: 'divider', + useVisible() { + const fieldSchema = useFieldSchema(); + return fieldSchema['x-component'] !== 'AssociationField.SubTable'; + }, }, { type: 'item', name: 'add', title: '{{t("Action column")}}', Component: 'TableActionColumnInitializer', + useVisible() { + const fieldSchema = useFieldSchema(); + return fieldSchema['x-component'] !== 'AssociationField.SubTable'; + }, }, ], });