Verify that the parent node to be expanded is a Folder before trying to expand it.

This commit is contained in:
Maurice Parker 2019-12-28 10:58:15 -07:00
parent 0fbd376078
commit 5c4d8aeba7
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
} }
// It wasn't already visable, so expand its folder and try again // 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?() completion?()
return return
} }