2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

fix: duplicated tag raise crash issue

This commit is contained in:
CMK 2022-05-13 14:31:53 +08:00
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)
}