Skip to content

Commit

Permalink
Fix typo that causes bugs when using field arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Nov 6, 2022
1 parent 1d80509 commit 27695c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the library will be documented in this file.
## vX.X.X (Month DD, YYYY)

- Rename TypeScript types and export more of them
- Fix typo that causes bugs when using field arrays

## v0.5.0 (November 06, 2022)

Expand Down
2 changes: 1 addition & 1 deletion packages/solid/src/utils/getFieldArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function getFieldArray<
form.internal.fieldArrays.set(name, fieldArray as any);

// Add name of field array to field array names
form.internal.setFieldNames((fieldArrayNames) => [
form.internal.setFieldArrayNames((fieldArrayNames) => [
...fieldArrayNames,
name,
]);
Expand Down

0 comments on commit 27695c3

Please sign in to comment.