Don't send sessions when editing course
This commit is contained in:
parent
e0922259ac
commit
b400d010e0
|
@ -83,7 +83,7 @@ export function InstructorCourseDetail(props) {
|
|||
if (loading) return;
|
||||
setLoading(true);
|
||||
setSuccess(false);
|
||||
const data = { ...input, is_old: false };
|
||||
const data = { ...input, is_old: false, sessions: null };
|
||||
requester('/courses/'+id+'/', 'PUT', token, data)
|
||||
.then(res => {
|
||||
setSuccess(true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user