Use better function for looking up article index

This commit is contained in:
Maurice Parker 2019-09-03 13:43:59 -05:00
parent bf572633f8
commit b7ba2c809c
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ private extension MasterTimelineViewController {
guard traitCollection.userInterfaceIdiom == .pad else {
return
}
if let articleID = coordinator.currentArticle?.articleID, let index = coordinator.indexesForArticleIDs(Set([articleID])).first {
if let articleID = coordinator.currentArticle?.articleID, let index = coordinator.indexForArticleID(articleID) {
let indexPath = IndexPath(row: index, section: 0)
tableView.selectRow(at: indexPath, animated: false, scrollPosition: .none)
}