Skip to content

Commit

Permalink
fix(form): fix money value=0, style error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 10, 2022
1 parent 4758e7c commit 4d049e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/field/src/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const FieldCheckbox: ProFieldFC<GroupProps> = (
if (mode === 'read') {
const optionsValueEnum = options?.length
? options?.reduce((pre: any, cur) => {
return { ...pre, [cur.value || '']: cur.label };
return { ...pre, [cur.value ?? '']: cur.label };
}, {})
: undefined;

Expand Down

0 comments on commit 4d049e6

Please sign in to comment.