Fix max students bug when adding multiple classes

This commit is contained in:
Tanner Collin 2022-05-10 00:22:20 +00:00
parent 2c59b93402
commit f88941993c

View File

@ -359,7 +359,7 @@ export function InstructorClassList(props) {
requester('/sessions/', 'POST', token, data) requester('/sessions/', 'POST', token, data)
.then(res => { .then(res => {
setSuccess(res.id); setSuccess(res.id);
setInput({}); setInput({ max_students: null });
setLoading(false); setLoading(false);
setError(false); setError(false);
setOpen(false); setOpen(false);