From e4eb8bc16efddb37323f3ec310bca15dd7bbf36a Mon Sep 17 00:00:00 2001 From: Vitor Pires Date: Tue, 15 Oct 2024 19:58:28 +0100 Subject: [PATCH] fix: lock option --- .../planner/sidebar/CoursesController/ClassSelector.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/planner/sidebar/CoursesController/ClassSelector.tsx b/src/components/planner/sidebar/CoursesController/ClassSelector.tsx index a43c9114..8c0b7b96 100644 --- a/src/components/planner/sidebar/CoursesController/ClassSelector.tsx +++ b/src/components/planner/sidebar/CoursesController/ClassSelector.tsx @@ -30,6 +30,7 @@ const ClassSelector = ({ course }: Props) => { if (option.length === 0) { setSelectedClassId(null); + setDisplay(null); return; }