Skip to content

Commit

Permalink
fix(form): fix money value=0, style error
Browse files Browse the repository at this point in the history
close dc2fa95
  • Loading branch information
chenshuai2144 committed Jan 10, 2022
1 parent a6b66b4 commit 832da15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/field/src/components/Radio/index.tsx
Expand Up @@ -40,7 +40,7 @@ const FieldRadio: 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;
const dom = <>{proFieldParsingText(rest.text, ObjToMap(rest.valueEnum || optionsValueEnum))}</>;
Expand Down

0 comments on commit 832da15

Please sign in to comment.