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