Verify that the parent node to be expanded is a Folder before trying to expand it.
This commit is contained in:
parent
0fbd376078
commit
5c4d8aeba7
|
@ -564,7 +564,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
|||
}
|
||||
|
||||
// It wasn't already visable, so expand its folder and try again
|
||||
guard let parent = node.parent else {
|
||||
guard let parent = node.parent, parent.representedObject is Folder else {
|
||||
completion?()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue