diff --git a/components/calendar/calendar-client.tsx b/components/calendar/calendar-client.tsx index 710f7b39..a1f744dd 100644 --- a/components/calendar/calendar-client.tsx +++ b/components/calendar/calendar-client.tsx @@ -1107,11 +1107,11 @@ export function CalendarClient({ initialCalendars, userId, userProfile }: Calend .filter(cal => visibleCalendarIds.includes(cal.id)) .flatMap(cal => (cal.events || []).map(event => ({ - id: event.id, - title: event.title, + id: event.id, + title: event.title, start: new Date(event.start), end: new Date(event.end), - allDay: event.isAllDay, + allDay: event.isAllDay, description: event.description, location: event.location, calendarId: event.calendarId, @@ -1122,19 +1122,20 @@ export function CalendarClient({ initialCalendars, userId, userProfile }: Calend location: event.location, description: event.description, calendarId: event.calendarId, - originalEvent: event + originalEvent: event, + color: cal.color } })) )} eventContent={(arg) => (