Fix regression that prevented the timeline and article from being cleared when the current feed is deleted. Fixes #3054

This commit is contained in:
Maurice Parker 2021-05-06 20:07:49 -05:00
parent d631d4d382
commit 9b53fcbe37
1 changed files with 2 additions and 3 deletions

View File

@ -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()
}
}