From f041a273b59128cc09b920142bf84255a10e8938 Mon Sep 17 00:00:00 2001 From: Levi McCallum Date: Sat, 3 Oct 2015 18:51:14 -0700 Subject: [PATCH] Use rows mutable array for section deletion --- AsyncDisplayKit/Details/ASDataController.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AsyncDisplayKit/Details/ASDataController.mm b/AsyncDisplayKit/Details/ASDataController.mm index 479ba381dd..ed67bc6f19 100644 --- a/AsyncDisplayKit/Details/ASDataController.mm +++ b/AsyncDisplayKit/Details/ASDataController.mm @@ -370,7 +370,8 @@ static void *kASSizingQueueContext = &kASSizingQueueContext; NSArray *indexPaths = ASIndexPathsForMultidimensionalArray(_editingNodes[ASRowNodeKind]); [self _deleteNodesAtIndexPaths:indexPaths withAnimationOptions:animationOptions]; - NSMutableIndexSet *indexSet = [[NSMutableIndexSet alloc] initWithIndexesInRange:NSMakeRange(0, _editingNodes.count)]; + NSMutableArray *editingNodes = _editingNodes[ASRowNodeKind]; + NSMutableIndexSet *indexSet = [[NSMutableIndexSet alloc] initWithIndexesInRange:NSMakeRange(0, editingNodes.count)]; [self _deleteSectionsAtIndexSet:indexSet withAnimationOptions:animationOptions]; [self willReloadData];