From b08e18e4763ecc40b32fadc81c0255f1737ecf2b Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Sun, 7 Jan 2024 16:52:17 -0800 Subject: [PATCH] fix: colorpicker no longer closes on click (#851) --- apps/antalmanac/src/components/Calendar/CalendarRoot.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx b/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx index 47ce75da7..5a97c28e9 100644 --- a/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx +++ b/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx @@ -52,8 +52,8 @@ const AntAlmanacEvent = ({ event }: { event: CalendarEvent }) => { {event.showLocationInfo ? event.locations.map((location) => `${location.building} ${location.room}`).join(', ') : event.locations.length > 1 - ? `${event.locations.length} Locations` - : `${event.locations[0].building} ${event.locations[0].room}`} + ? `${event.locations.length} Locations` + : `${event.locations[0].building} ${event.locations[0].room}`} {event.sectionCode} @@ -164,8 +164,6 @@ export default function ScheduleCalendar(props: ScheduleCalendarProps) { setCurrentScheduleIndex(AppStore.getCurrentScheduleIndex()); setEventsInCalendar(AppStore.getEventsInCalendar()); setFinalEventsInCalendar(AppStore.getFinalEventsInCalendar()); - - handleClosePopover(); }; const updateScheduleNames = () => {