From 9b53fcbe370fa064dabc630529affd39de44a721 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 6 May 2021 20:07:49 -0500 Subject: [PATCH] Fix regression that prevented the timeline and article from being cleared when the current feed is deleted. Fixes #3054 --- iOS/MasterFeed/MasterFeedViewController.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index bf9e5cf45..9e6808b73 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -1407,13 +1407,12 @@ private extension MasterFeedViewController { ActivityManager.cleanUp(feed) } - pushUndoableCommand(deleteCommand) - deleteCommand.perform() - if indexPath == coordinator.currentFeedIndexPath { coordinator.selectFeed(indexPath: nil) } + pushUndoableCommand(deleteCommand) + deleteCommand.perform() } }