From a19ed6e9e2b10268e619f03436066481dfd6f8ba Mon Sep 17 00:00:00 2001 From: Simona Domnisoru Date: Tue, 3 Dec 2024 15:36:14 +0100 Subject: [PATCH] fix: flow errors --- .../components/D2Form/FormBuilder/FormBuilder.component.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core_modules/capture-core/components/D2Form/FormBuilder/FormBuilder.component.js b/src/core_modules/capture-core/components/D2Form/FormBuilder/FormBuilder.component.js index b6aaf32d5c..9f07004ebb 100644 --- a/src/core_modules/capture-core/components/D2Form/FormBuilder/FormBuilder.component.js +++ b/src/core_modules/capture-core/components/D2Form/FormBuilder/FormBuilder.component.js @@ -170,9 +170,8 @@ export class FormBuilder extends React.Component { let validationData; try { - const { validators } = field; validationData = await validateValue({ - validators, + validators: field.validators, value: values[field.id], validationContext, postProcessAsyncValidatonInitiation: handleIsValidatingInternal,