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: {