Skip to content

Commit e09b703

Browse files
committed
Show error instead of helperText
1 parent 6bf3408 commit e09b703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mui-component-mapper/src/form-fields/form-fields.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ const FinalFormField = ({
201201
{ selectComponent({
202202
...rest,
203203
invalid,
204-
label: invalid ? meta.error : label,
205-
helperText: helperText || description,
204+
label,
205+
helperText: invalid ? meta.error : helperText || description,
206206
originalLabel: label,
207207
})() }
208208
</Grid>

0 commit comments

Comments
 (0)