Skip to content

Commit

Permalink
fix: colorpicker no longer closes on click (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Jan 8, 2024
1 parent b583a2b commit b08e18e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/antalmanac/src/components/Calendar/CalendarRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`}
</Box>
<Box>{event.sectionCode}</Box>
</Box>
Expand Down Expand Up @@ -164,8 +164,6 @@ export default function ScheduleCalendar(props: ScheduleCalendarProps) {
setCurrentScheduleIndex(AppStore.getCurrentScheduleIndex());
setEventsInCalendar(AppStore.getEventsInCalendar());
setFinalEventsInCalendar(AppStore.getFinalEventsInCalendar());

handleClosePopover();
};

const updateScheduleNames = () => {
Expand Down

0 comments on commit b08e18e

Please sign in to comment.