From 78adf7545ebaa55df70d43263b48c3a505791ed5 Mon Sep 17 00:00:00 2001 From: Tze Zhe Brandon Lim Date: Thu, 21 Mar 2024 18:53:06 -0400 Subject: [PATCH] Reset selected NUPATHS when closing the modal --- packages/frontend/components/AddCourseModal/AddCourseModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/components/AddCourseModal/AddCourseModal.tsx b/packages/frontend/components/AddCourseModal/AddCourseModal.tsx index 7d9edc399..3263bc444 100644 --- a/packages/frontend/components/AddCourseModal/AddCourseModal.tsx +++ b/packages/frontend/components/AddCourseModal/AddCourseModal.tsx @@ -115,6 +115,7 @@ export const AddCourseModal: React.FC = ({ const onClose = () => { setSelectedCourses([]); setSearchQuery(""); + setSelectedNUPaths([]); closeModalDisplay(); };