Merge branch 'bugfix/CXTDT-537495' into 'develop'
Digital PCT265 defect CXTDT-537495 ### Summary Retail store locator crash fix. ### JIRA Ticket https://onejira.verizon.com/browse/CXTDT-537495 Co-authored-by: Hedden, Kyle Matthew <kyle.hedden@verizonwireless.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1085
This commit is contained in:
commit
add7eee2f7
@ -140,7 +140,7 @@ open class MoleculeListTemplate: ThreeLayerTableViewController, TemplateProtocol
|
||||
}
|
||||
}
|
||||
|
||||
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
||||
open func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
||||
return (getMoleculeInfo(for: indexPath)?.molecule as? ListItemModelProtocol)?.gone == true ? 0 : UITableView.automaticDimension
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ open class MoleculeListTemplate: ThreeLayerTableViewController, TemplateProtocol
|
||||
|
||||
/// Returns the (identifier, class) of the molecule for the indexPath.
|
||||
func getMoleculeInfo(for indexPath: IndexPath) -> MoleculeInfo? {
|
||||
moleculesInfo?[indexPath.row]
|
||||
moleculesInfo?[safe: indexPath.row]
|
||||
}
|
||||
|
||||
/// Sets up the molecule list and ensures no errors loading all content.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user