Skip to content

Commit

Permalink
Code review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrentka committed Dec 3, 2024
1 parent b9ae603 commit 5089eda
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ final class ExpandableCollectionsCollectionViewHandler: NSObject {
if !snapshot.visibleItems.contains(where: { $0.identifier == collectionId }) {
// Selection is collapsed, we need to expand and select it then
update(with: tree, selectedId: collectionId, animated: false) { [weak self] in
inMainThread { [weak self] in
self?.selectIfNeeded(collectionId: collectionId, tree: tree, scrollToPosition: scrollToPosition)
}
self?.selectIfNeeded(collectionId: collectionId, tree: tree, scrollToPosition: scrollToPosition)
}
return
}
Expand Down

0 comments on commit 5089eda

Please sign in to comment.