Skip to content

Commit

Permalink
Fix: sort ical events in monthly view (gethomepage#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Jan 10, 2024
1 parent 8f121d6 commit 66a1368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/calendar/monthly.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default function Monthly({ service, colorVariants, events, showDate, setS
}

const eventsArray = Object.keys(events).map((eventKey) => events[eventKey]);
eventsArray.sort((a, b) => a.date - b.date);

return (
<div className="w-full text-center">
Expand Down

0 comments on commit 66a1368

Please sign in to comment.