diff --git a/src/generic/create-or-rerun-course/hooks.jsx b/src/generic/create-or-rerun-course/hooks.jsx index cc30895c88..4bfecb08dd 100644 --- a/src/generic/create-or-rerun-course/hooks.jsx +++ b/src/generic/create-or-rerun-course/hooks.jsx @@ -82,7 +82,11 @@ const useCreateOrRerunCourse = (initialValues) => { }, []); useEffect(() => { - setFormFilled(Object.values(values).every((i) => i)); + setFormFilled( + Object.entries(values) + ?.filter(([key]) => key !== 'undefined') + .every(([, value]) => value), + ); dispatch(updatePostErrors({})); }, [values]);