fix(calendar): When an event has no date (weird case), it is not possible to remove the event (NSException)

This commit is contained in:
smizrahi
2023-08-14 17:08:27 +02:00
parent e959583390
commit 4d2c77195e
+1 -1
View File
@@ -850,7 +850,7 @@
attachUrls = [self attachUrls];
if ([attachUrls count]) [data setObject: attachUrls forKey: @"attachUrls"];
if (!isAllDay)
if (!isAllDay && eventStartDate && eventStartDate)
{
[data setObject: [dateFormatter formattedTime: eventStartDate] forKey: @"localizedStartTime"];
[data setObject: [dateFormatter formattedTime: eventEndDate] forKey: @"localizedEndTime"];