From 15cb251c4b9ef2e53005b109a49c635c288c7360 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Sat, 6 May 2023 14:14:02 +0800 Subject: [PATCH] refactor: internalSelect recordPicker --- .../schema-component/antd/association-field/InternalSelect.tsx | 1 + packages/plugins/acl/src/collections/users.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalSelect.tsx index 64b0a7852d..3e8fbe4b4d 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalSelect.tsx @@ -104,6 +104,7 @@ export const InternalSelect = observer((props: any) => { onChange: props?.onChange, selectedRows, setSelectedRows, + collectionField }; useEffect(() => { if (value && Object.keys(value).length > 0) { diff --git a/packages/plugins/acl/src/collections/users.ts b/packages/plugins/acl/src/collections/users.ts index 5d201d0eca..46872bc463 100644 --- a/packages/plugins/acl/src/collections/users.ts +++ b/packages/plugins/acl/src/collections/users.ts @@ -17,7 +17,7 @@ export default extend({ uiSchema: { type: 'array', title: '{{t("Roles")}}', - 'x-component': 'RecordPicker', + 'x-component': 'AssociationField', 'x-component-props': { multiple: true, fieldNames: {