From 78f5f109b462f55780d396aad58197a92836cfea Mon Sep 17 00:00:00 2001 From: ledouxm Date: Wed, 16 Oct 2024 10:56:00 +0200 Subject: [PATCH] fix: show selected redactedBY --- packages/frontend/src/features/InfoForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/features/InfoForm.tsx b/packages/frontend/src/features/InfoForm.tsx index cac17d67..0e90df20 100644 --- a/packages/frontend/src/features/InfoForm.tsx +++ b/packages/frontend/src/features/InfoForm.tsx @@ -28,6 +28,8 @@ export const InfoForm = () => { time: meetDate ? format(new Date(meetDate), "HH:mm") : "", }); + const redactedById = useWatch({ control: form.control, name: "redactedById" }); + const tryToSetMeetDate = () => { const day = meetDateRef.current.day; const time = meetDateRef.current.time; @@ -90,7 +92,9 @@ export const InfoForm = () => { nativeSelectProps={redactedByProps} > {redactedByOptions?.map((option) => ( - )) ?? null}