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;
|
if (loading) return;
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setSuccess(false);
|
setSuccess(false);
|
||||||
const data = { ...input, is_old: false };
|
const data = { ...input, is_old: false, sessions: null };
|
||||||
requester('/courses/'+id+'/', 'PUT', token, data)
|
requester('/courses/'+id+'/', 'PUT', token, data)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
setSuccess(true);
|
setSuccess(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user