Skip to content

Commit

Permalink
fix: some events are not showing on the calendar
Browse files Browse the repository at this point in the history
Fixes #126
  • Loading branch information
ArtemSBulgakov committed Feb 18, 2024
1 parent 885e354 commit 94e3fe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/common/calendar/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ function Calendar({
// Accumulate 'extendedProps.calendarURLs' to use it later.
const unique: Record<string, EventApi> = {};
for (const event of events) {
// Using 'id' instead of 'title' is a fix for Music romm
const uniqueId =
event.id || event.title + event.startStr + event.endStr;
(event.id || event.title) + event.startStr + event.endStr;
if (!(uniqueId in unique)) {
unique[uniqueId] = event;
} else {
Expand Down

0 comments on commit 94e3fe9

Please sign in to comment.