diff --git a/src/lib/core/components/Form/Controller/utils.tsx b/src/lib/core/components/Form/Controller/utils.tsx index 0eae0311..87bd23d2 100644 --- a/src/lib/core/components/Form/Controller/utils.tsx +++ b/src/lib/core/components/Form/Controller/utils.tsx @@ -555,15 +555,13 @@ export const updateStore = < state: store.state, }; - if (updateState) { - nextStore = methodOnChange(nextStore, { - valOrSetter: (value) => - valueMutatorUpdated ? (valueMutator as {value: DirtyValue}).value : value, - ...(errorMutatorUpdated - ? {errorMutator: (errorMutator as {value: BaseValidateError}).value} - : {}), - }); - } + nextStore = methodOnChange(nextStore, { + valOrSetter: (value) => + valueMutatorUpdated ? (valueMutator as {value: DirtyValue}).value : value, + ...(errorMutatorUpdated + ? {errorMutator: (errorMutator as {value: BaseValidateError}).value} + : {}), + }); setStore(nextStore); } else if (updateNonCritical) {