1
0
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:
CMK 2022-05-13 14:31:53 +08:00
parent 2784fb8771
commit ec8e1b8760

View File

@ -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)
}