diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx index e5bab89e0..3ab9e3855 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx @@ -6,7 +6,7 @@ import { getPopupContainer } from '../utils'; const useUpdateCollectionField = (record) => { const collectionName = record.collectionName; - const { run } = useUpdateFieldAction({ collectionName, name: record.name, key: record.key }); + const { run } = useUpdateFieldAction({ collectionName, name: record.name, key: record.id }); return { async run() { await run(); diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx index 0087142ef..b6730f868 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx @@ -128,16 +128,16 @@ const OperationButton: any = React.memo((props: any) => { delete: { type: 'void', 'x-action': 'destroy', - 'x-component': 'Action', + 'x-component': 'Action.Link', 'x-visible': '{{isInheritField}}', 'x-component-props': { component: DeleteOutlined, icon: 'DeleteOutlined', className: 'btn-del', confirm: { - title: "{{t('Delete record')}}", getContainer: getPopupContainer, - collectionConten: "{{t('Are you sure you want to delete it?')}}", + title: "{{t('Delete record')}}", + content: "{{t('Are you sure you want to delete it?')}}", }, useAction: () => useDestroyFieldActionAndRefreshCM({