mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-23 06:02:35 +01:00
fix: duplicated tag raise crash issue
This commit is contained in:
parent
2784fb8771
commit
ec8e1b8760
@ -32,7 +32,7 @@ extension DiscoveryHashtagsViewModel {
|
||||
snapshot.appendSections([.hashtags])
|
||||
|
||||
let items = hashtags.map { DiscoveryItem.hashtag($0) }
|
||||
snapshot.appendItems(items, toSection: .hashtags)
|
||||
snapshot.appendItems(items.removingDuplicates(), toSection: .hashtags)
|
||||
|
||||
diffableDataSource.apply(snapshot)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user