Omit category title if single AND unnamed
This commit is contained in:
parent
05697b12cc
commit
7865f6a697
|
@ -157,7 +157,7 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate
|
||||||
}
|
}
|
||||||
|
|
||||||
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
|
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
|
||||||
guard categories.count > 1 else {
|
if categories.count == 1 && categories.first?.name == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let model = categories[section]
|
let model = categories[section]
|
||||||
|
|
Loading…
Reference in New Issue