Skip to content

Commit

Permalink
Update SearchResultViewController.swift
Browse files Browse the repository at this point in the history
解决第二次搜索崩溃问题(哈希键重复)
  • Loading branch information
ZsIsMe committed Oct 8, 2023
1 parent 20c6646 commit 1196a0f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class SearchResultViewController: UIViewController {
WebRequest.requestSearchResult(key: key) { [weak self] searchResult in
guard let self = self else { return }
currentSnapshot.deleteAllItems()

dataSource.apply(currentSnapshot)

let defaultHeight = NSCollectionLayoutDimension.fractionalWidth(Settings.displayStyle == .large ? 0.26 : 0.2)
for section in searchResult.result {
switch section {
Expand Down

0 comments on commit 1196a0f

Please sign in to comment.