Fixes crash when searching in SyncStatusViewController

This commit is contained in:
Riley Testut 2019-03-20 10:53:14 -07:00
parent 935ad9b7c2
commit 7464ce1412

View File

@ -21,7 +21,9 @@ class SyncStatusViewController: UITableViewController
super.viewDidLoad()
self.tableView.dataSource = self.dataSource
self.navigationItem.searchController = self.dataSource.searchController
let fetchedDataSource = self.dataSource.dataSources.last
self.navigationItem.searchController = fetchedDataSource?.searchController
}
override func viewWillAppear(_ animated: Bool)