Use correct method to scan the nodes
This commit is contained in:
parent
bceccd76b5
commit
0f66e2b5e3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue