From 044033feefdd84114d46bcd3004470b244620eba Mon Sep 17 00:00:00 2001 From: Sivert Hatteberg <sivert.hatteberg@usit.uio.no> Date: Wed, 27 Oct 2021 14:05:38 +0200 Subject: [PATCH] Controller does not support undefined as as default input. Breaks npm build Issue: GREG-96 --- frontend/src/routes/sponsor/register/stepPersonForm.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/routes/sponsor/register/stepPersonForm.tsx b/frontend/src/routes/sponsor/register/stepPersonForm.tsx index ca85cbc8..9c45ce7d 100644 --- a/frontend/src/routes/sponsor/register/stepPersonForm.tsx +++ b/frontend/src/routes/sponsor/register/stepPersonForm.tsx @@ -225,7 +225,6 @@ const StepPersonForm = forwardRef( <Controller name="role_end" control={control} - defaultValue={undefined} render={({ field }) => ( <DatePicker mask="____-__-__" -- GitLab