소스 검색

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 년 전
부모
커밋
404dd52bc5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 1 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1049,10 +1049,10 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                 self.providers = allProviders
             } update: { searchResults, metadatas in
                 guard let metadatas = metadatas, metadatas.count > 0 else { return }
-                self.searchResults = searchResults
 
                 DispatchQueue.main.async {
                     if self.searchController?.isActive == true {
+                        self.searchResults = searchResults
                         self.metadatasSource = metadatas
                         self.dataSource = NCDataSource(metadatasSource: self.metadatasSource,
                                                        account: self.appDelegate.account,