Fix crash when leaving timeline VC that was showing timeline description message and doesn't have any statuses
This commit is contained in:
parent
2df703ab71
commit
948c792e5d
|
@ -67,7 +67,8 @@ class DiffableTimelineLikeTableViewController<Section: Hashable & CaseIterable,
|
||||||
}
|
}
|
||||||
|
|
||||||
private func pruneOffscreenRows() {
|
private func pruneOffscreenRows() {
|
||||||
guard let lastVisibleRow = lastLastVisibleRow else {
|
guard let lastVisibleRow = lastLastVisibleRow,
|
||||||
|
lastVisibleRow.section < tableView.numberOfSections else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue