Skip to content

Commit a13f56e

Browse files
committed
fix: prevent useMutators from using previous call arguments
1 parent b43c648 commit a13f56e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ export const useMutators = (externalMutators?: DynamicFormMutators) => {
6767
...(mutators.errors
6868
? {errors: mergeValuesOrErrors(store.errors, mutators.errors)}
6969
: {}),
70-
...(mutators.values
71-
? {values: mergeValuesOrErrors(store.values, mutators.values)}
72-
: {}),
70+
...(mutators.values ? {values: mergeValuesOrErrors({}, mutators.values)} : {}),
7371
...(mutators.spec ? {spec: mergeSpec(store.spec, mutators.spec)} : {}),
7472
};
7573
},

0 commit comments

Comments
 (0)