Loop through through rows using the count of rows in that section, rather than the count of rows in the initial indexPath’s section. Fix #1987.

This commit is contained in:
Brent Simmons 2020-04-12 18:23:20 -07:00
parent 6d9eda442f
commit 1321f0b9ff

View File

@ -1693,16 +1693,16 @@ private extension SceneCoordinator {
return 0
}
}()
for j in startingRow..<shadowTable[indexPath.section].count {
for j in startingRow..<shadowTable[i].count {
let nextIndexPath = IndexPath(row: j, section: i)
guard let node = nodeFor(nextIndexPath), let unreadCountProvider = node.representedObject as? UnreadCountProvider else {
assertionFailure()
completion(false)
return
}
if isExpanded(node) {
continue
}