fix опечатка
This commit is contained in:
parent
9f7776243f
commit
622f4e75ed
@ -52,7 +52,7 @@ export function createValidationReaction<T extends ZodTypeAny>(
|
||||
|
||||
if (validationResult.success === false) {
|
||||
validationResult.error.errors.forEach(({ path, message }) => {
|
||||
(path as Array<Elements & ('insurance' | 'insurance')>).forEach((elementName) => {
|
||||
(path as Array<Elements & ('insurance' | 'payments')>).forEach((elementName) => {
|
||||
if (elementName === 'insurance') {
|
||||
const removeError = $tables.insurance.setError({ key, message });
|
||||
if (removeError) helper.add(removeError);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user