diff --git a/src/generic/create-or-rerun-course/hooks.jsx b/src/generic/create-or-rerun-course/hooks.jsx index 2c0a8d0b71..6807afdcf4 100644 --- a/src/generic/create-or-rerun-course/hooks.jsx +++ b/src/generic/create-or-rerun-course/hooks.jsx @@ -84,7 +84,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]);