From e5f5a65703566efce22d7267563962292be8172c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Zakrzewski?= Date: Tue, 9 Apr 2024 15:15:21 +0200 Subject: [PATCH] update set field values --- .../ui/src/components/common-form-fields/FormikFields.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx b/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx index e7a69b879..b92b66794 100644 --- a/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx +++ b/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx @@ -121,10 +121,10 @@ export function FormikAutocomplete( return filtered; }} loading={loading} - onChange={(_, values): void => + onChange={(_, values) => setFieldValue(props.name, values ?? undefined) } - onBlur={(): void => setTouched({ [props.name]: true })} + onBlur={() => setTouched({ [props.name]: true })} defaultValue={props.initialValue} renderInput={(params): JSX.Element => ( // Do not use FastField here