Skip to content

Commit 89289a3

Browse files
authored
fix: prevent useMutators from using previous call arguments (#296)
1 parent 6b86b21 commit 89289a3

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
@@ -53,7 +53,7 @@ export const useMutators = (externalMutators?: DynamicFormMutators) => {
5353
a: Record<string, {value: T}> = {},
5454
b: Record<string, T>,
5555
) => {
56-
const result = cloneDeep(a);
56+
const result = {...a};
5757

5858
Object.keys(b).forEach((key) => {
5959
set(result, [key, 'value'], b[key]);

0 commit comments

Comments
 (0)