Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delete button to allow coordinators to drop sections #443

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Fixed eslint error for courseIds variable in MentorSectionInfo.tsx
KartavyaSharma committed Sep 20, 2023
commit 4da7c301fc5e8f9fad3d0498c8802da190814961
4 changes: 2 additions & 2 deletions csm_web/frontend/src/components/section/MentorSectionInfo.tsx
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ export default function MentorSectionInfo({
const [isAddingStudent, setIsAddingStudent] = useState<boolean>(false);
const [deleteType, setDeleteType] = useState<boolean>(false);

let courseIds = [];
let courseIds: number[] = [];

const closeModal = () => setShowModal(ModalStates.NONE);

@@ -82,7 +82,7 @@ export default function MentorSectionInfo({
coursesById.set(courseObj.id, courseObj);
}

let courseIds = Array.from(coursesById.keys());
courseIds = Array.from(coursesById.keys());
// console.log(courseIds)
}