fix: create course button inactive after using org drop-down (#1277)
Co-authored-by: Dima Alipov <dimaalipov@192.168.1.101>
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user