From 082988549dc81d7eab645899f7b3cb631055893a Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Mon, 8 May 2023 14:00:01 +0800 Subject: [PATCH] refactor: field mode default value --- .../client/src/schema-component/antd/form-item/FormItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx index 9468fbecdb..773a2f3e2a 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx @@ -514,7 +514,7 @@ FormItem.Designer = function Designer() { key="field-mode" title={t('Field mode')} options={fieldModeOptions} - value={field?.componentProps?.['mode'] || isFileField ? 'FileManager' : 'Select'} + value={field?.componentProps?.['mode'] || (isFileField ? 'FileManager' : 'Select')} onChange={(mode) => { const schema = { ['x-uid']: fieldSchema['x-uid'],