Fix deletions in context

This commit is contained in:
Justin Mazzocchi 2021-01-27 22:41:06 -08:00
parent f0a7f52550
commit 36b4cb19ad
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -470,7 +470,8 @@ public extension ContentDatabase {
.removeDuplicates() .removeDuplicates()
.publisher(in: databaseWriter) .publisher(in: databaseWriter)
.combineLatest(activeFiltersPublisher) .combineLatest(activeFiltersPublisher)
.compactMap { $0?.items(filters: $1) } .map { $0?.items(filters: $1) }
.replaceNil(with: [])
.eraseToAnyPublisher() .eraseToAnyPublisher()
} }