build fix

This commit is contained in:
alma 2025-05-05 17:44:07 +02:00
parent 1b63b78a20
commit 8f2621f384

View File

@ -70,7 +70,7 @@ export function CalendarWidget() {
// Extract all events and add calendar info
const allEvents = calendarsData.flatMap((calendar) => {
console.log("Calendar Widget - Processing calendar:", calendar.name, "Events:", calendar.events?.length || 0);
return (calendar.events || []).map((event: any) => {
return (calendar.events || []).map((event: { id: string; title: string; start: string | Date; end: string | Date; isAllDay: boolean; calendarId: string }) => {
const startDate = new Date(event.start);
const endDate = new Date(event.end);
return {