Fix can't delete without selecting in sidebar but for Multiplatform
This commit is contained in:
parent
24295639ae
commit
24f1371a9a
|
@ -170,7 +170,7 @@ private extension SidebarModel {
|
||||||
guard let selectedFeedsPublisher = selectedFeedsPublisher else { return }
|
guard let selectedFeedsPublisher = selectedFeedsPublisher else { return }
|
||||||
|
|
||||||
deleteFromAccount
|
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 }) {
|
if selectedFeeds.contains(where: { $0.feedID == givenFeed.feedID }) {
|
||||||
return selectedFeeds
|
return selectedFeeds
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue