Fondation
This commit is contained in:
parent
11398f75ce
commit
86b40479c7
@ -119,7 +119,7 @@ export function Calendar() {
|
|||||||
setEvents(upcomingEvents);
|
setEvents(upcomingEvents);
|
||||||
|
|
||||||
// Dispatch event for Outlook-style notifications (when events start)
|
// Dispatch event for Outlook-style notifications (when events start)
|
||||||
const eventsForNotification = upcomingEvents.map(evt => ({
|
const eventsForNotification = upcomingEvents.map((evt: Event) => ({
|
||||||
id: evt.id,
|
id: evt.id,
|
||||||
title: evt.title,
|
title: evt.title,
|
||||||
start: evt.start instanceof Date ? evt.start : new Date(evt.start),
|
start: evt.start instanceof Date ? evt.start : new Date(evt.start),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user