Skip to content

Commit b43c648

Browse files
fix(useMutators): fix merging arrays with mutators (#294)
1 parent fa06de1 commit b43c648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/components/Form/hooks/useMutators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const useMutators = (externalMutators?: DynamicFormMutators) => {
2727
const result = cloneDeep(a);
2828

2929
const getKeys = (parent: any): string[][] => {
30-
if (isObjectLike(parent)) {
30+
if (isObjectLike(parent) && !Array.isArray(parent)) {
3131
return keys(parent).reduce((acc: string[][], parentKey) => {
3232
const childKeys = getKeys(parent[parentKey]);
3333

0 commit comments

Comments
 (0)