From f7b50158d4e72d37446c126ce35bb3d26fa7fd41 Mon Sep 17 00:00:00 2001 From: elvis liao <1219585136@qq.com> Date: Thu, 17 Oct 2024 13:29:15 +0800 Subject: [PATCH] fix(FormItem): fixed formItem default value --- src/form/hooks/useFormItemInitialData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/form/hooks/useFormItemInitialData.ts b/src/form/hooks/useFormItemInitialData.ts index 20d5f81288..823e68abba 100644 --- a/src/form/hooks/useFormItemInitialData.ts +++ b/src/form/hooks/useFormItemInitialData.ts @@ -53,7 +53,7 @@ export default function useFormItemInitialData() { if (typeof defaultInitialData !== 'undefined') return defaultInitialData; } - if (initialData) { + if (typeof initialData !== 'undefined') { return initialData; }