Don't send sessions when editing course

This commit is contained in:
Tanner Collin 2022-04-26 03:05:07 +00:00
parent e0922259ac
commit b400d010e0

View File

@ -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);