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
1 changed files with 2 additions and 1 deletions

View File

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