Fix can't delete without selecting in sidebar but for Multiplatform

This commit is contained in:
Maurice Parker 2020-08-14 15:36:19 -05:00
parent 24295639ae
commit 24f1371a9a
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ private extension SidebarModel {
guard let selectedFeedsPublisher = selectedFeedsPublisher else { return }
deleteFromAccount
.withLatestFrom(selectedFeedsPublisher, resultSelector: { givenFeed, selectedFeeds -> [Feed] in
.withLatestFrom(selectedFeedsPublisher.prepend([Feed]()), resultSelector: { givenFeed, selectedFeeds -> [Feed] in
if selectedFeeds.contains(where: { $0.feedID == givenFeed.feedID }) {
return selectedFeeds
} else {