From 36ce29eace90d04640e176b543c1f7db2eb07df5 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Wed, 20 Mar 2024 17:27:33 +0800 Subject: [PATCH] fix: first character entered in foreign key input is not displayed (#3770) --- .../src/collection-manager/Configuration/components/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/collection-manager/Configuration/components/index.tsx b/packages/core/client/src/collection-manager/Configuration/components/index.tsx index 5e7a60e25..5ff02f77b 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/index.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/index.tsx @@ -284,7 +284,7 @@ export const ForeignKey = observer( }} onChange={(value, option) => { props?.onChange?.(value); - setInitialValue(option.label); + setInitialValue(option.label || value); }} />