From 8b75738c90f44bfe706d5f7a6c324a36bae2bc28 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Mon, 14 Aug 2023 09:26:27 +0800 Subject: [PATCH] refactor: recordPicker => associationField (#2444) --- .../collection-manager/Configuration/AddCollectionAction.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx index 9dda098e65..1ab063e7c9 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx @@ -142,7 +142,7 @@ const getDefaultCollectionFields = (values) => { uiSchema: { type: 'object', title: '{{t("Created by")}}', - 'x-component': 'RecordPicker', + 'x-component': 'AssociationField', 'x-component-props': { fieldNames: { value: 'id', @@ -178,7 +178,7 @@ const getDefaultCollectionFields = (values) => { uiSchema: { type: 'object', title: '{{t("Last updated by")}}', - 'x-component': 'RecordPicker', + 'x-component': 'AssociationField', 'x-component-props': { fieldNames: { value: 'id',