Skip to content

Commit 3155d72

Browse files
author
Adlai Holler
authored
When converting index paths, only wait if asked (facebookarchive#3155)
1 parent 44d9415 commit 3155d72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/ASTableView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ - (NSIndexPath *)convertIndexPathFromTableNode:(NSIndexPath *)indexPath waitingI
562562
return indexPath;
563563
} else {
564564
NSIndexPath *viewIndexPath = [_dataController.visibleMap convertIndexPath:indexPath fromMap:_dataController.pendingMap];
565-
if (viewIndexPath == nil) {
565+
if (viewIndexPath == nil && wait) {
566566
[self waitUntilAllUpdatesAreCommitted];
567567
return [self convertIndexPathFromTableNode:indexPath waitingIfNeeded:NO];
568568
}

0 commit comments

Comments
 (0)