Skip to content

Commit e16ec4e

Browse files
committed
chore: resolve suggestions and discussions
1 parent 7495fe9 commit e16ec4e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/react-form/src/useFieldGroup.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,11 @@ export function useFieldGroup<
213213
extendedApi.AppField = function AppField(props) {
214214
return (
215215
<form.AppField {...(formLensApi.getFormFieldOptions(props) as any)} />
216-
) as never
216+
)
217217
}
218218

219219
extendedApi.Field = function Field(props) {
220-
return (
221-
<form.Field {...(formLensApi.getFormFieldOptions(props) as any)} />
222-
) as never
220+
return <form.Field {...(formLensApi.getFormFieldOptions(props) as any)} />
223221
}
224222

225223
extendedApi.Subscribe = function Subscribe(props: any) {

packages/react-form/tests/createFormHook.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ describe('createFormHook', () => {
451451
expect(inputField1).toHaveValue('John')
452452
})
453453

454-
it('should remap GroupFieldApi.Field validators to the correct names', () => {
454+
it('should remap FieldGroupApi.Field validators to the correct names', () => {
455455
const FieldGroupString = withFieldGroup({
456456
defaultValues: { password: '', confirmPassword: '' },
457457
render: function Render({ group }) {

0 commit comments

Comments
 (0)