Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Jul 13, 2022
1 parent d9ee49a commit a7b26f0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/__tests__/useFieldArray.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3569,7 +3569,15 @@ describe('useFieldArray', () => {
</div>
);
})}
<button onClick={() => append({})} type={'button'}>
<button
onClick={() =>
append({
value: '',
nestedFieldArray: [],
})
}
type={'button'}
>
append
</button>
<button>submit</button>
Expand Down Expand Up @@ -3622,7 +3630,15 @@ describe('useFieldArray', () => {
</div>
);
})}
<button onClick={() => append({})} type={'button'}>
<button
onClick={() =>
append({
value: '',
nestedFieldArray: [],
})
}
type={'button'}
>
append
</button>
<button>submit</button>
Expand Down

0 comments on commit a7b26f0

Please sign in to comment.