Skip to content

Commit

Permalink
fix(FormItem): fixed formItem default value
Browse files Browse the repository at this point in the history
  • Loading branch information
l123wx committed Oct 17, 2024
1 parent 7d6089a commit f7b5015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/form/hooks/useFormItemInitialData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function useFormItemInitialData() {
if (typeof defaultInitialData !== 'undefined') return defaultInitialData;
}

if (initialData) {
if (typeof initialData !== 'undefined') {
return initialData;
}

Expand Down

0 comments on commit f7b5015

Please sign in to comment.