We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd2237f commit f5783d1Copy full SHA for f5783d1
Sources/IO/EventRepo.swift
@@ -65,6 +65,12 @@ final class EventRepo {
65
eventStore.refreshSourcesIfNecessary()
66
67
let calendars = fetchEkCalendars(filter: calendarFilter)
68
+ // an emoty list means, no valid selection, but unfortunately the api for
69
+ // eventStore.predicateForEvents treats nil and an emptyList as a means
70
+ // to retrieve all calendars, so we short circuit
71
+ if calendars.isEmpty {
72
+ return []
73
+ }
74
75
let predicate = eventStore.predicateForEvents(
76
withStart: start,
0 commit comments