Use correct method to scan the nodes

This commit is contained in:
Maurice Parker 2019-09-10 08:24:55 -05:00
parent bceccd76b5
commit 0f66e2b5e3
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
} }
func masterFeedIndexPathForCurrentTimeline() -> IndexPath? { func masterFeedIndexPathForCurrentTimeline() -> IndexPath? {
guard let node = treeController.rootNode.descendantNode(where: { return $0.representedObject === timelineFetcher as AnyObject }) else { guard let node = treeController.rootNode.descendantNodeRepresentingObject(timelineFetcher as AnyObject) else {
return nil return nil
} }
return indexPathFor(node) return indexPathFor(node)