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