From 575ee8bf3829dd2c7c49fc2e0a548a87cd898cef Mon Sep 17 00:00:00 2001 From: jim-sheldon <5619539+jim-sheldon@users.noreply.github.com> Date: Sat, 23 Mar 2024 12:40:20 -0400 Subject: [PATCH] Fixes date fields autofilling on edit --- .../common-form-fields/FormikFields.tsx | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) 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 2bfb4e5ca..cc127b666 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 @@ -193,6 +193,37 @@ interface DateFieldProps { export function DateField(props: DateFieldProps): JSX.Element { const classes = useStyles(); + if (props.value) { + return ( +