|
|
@ -198,7 +198,7 @@ extension EventCenter { |
|
|
|
for date in eventsForDate.keys { |
|
|
|
for date in eventsForDate.keys { |
|
|
|
if let events = eventsForDate[date] { |
|
|
|
if let events = eventsForDate[date] { |
|
|
|
for event in events { |
|
|
|
for event in events { |
|
|
|
if selectedCalendars.contains(event.event.calendar.calendarIdentifier) { |
|
|
|
if event.event.calendar != nil && selectedCalendars.contains(event.event.calendar.calendarIdentifier) { |
|
|
|
if filteredEvents[date] == nil { |
|
|
|
if filteredEvents[date] == nil { |
|
|
|
filteredEvents[date] = Array() |
|
|
|
filteredEvents[date] = Array() |
|
|
|
} |
|
|
|
} |
|
|
|