From 24f1371a9a4948df71813a5ca5d8ef15140b21bc Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 14 Aug 2020 15:36:19 -0500 Subject: [PATCH] Fix can't delete without selecting in sidebar but for Multiplatform --- Multiplatform/Shared/Sidebar/SidebarModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Multiplatform/Shared/Sidebar/SidebarModel.swift b/Multiplatform/Shared/Sidebar/SidebarModel.swift index ed40fe7d1..2891ac5cd 100644 --- a/Multiplatform/Shared/Sidebar/SidebarModel.swift +++ b/Multiplatform/Shared/Sidebar/SidebarModel.swift @@ -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 {