Pārlūkot izejas kodu

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 gadi atpakaļ
vecāks
revīzija
c78941278d
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      iOSClient/Data/NCDataSource.swift

+ 1 - 3
iOSClient/Data/NCDataSource.swift

@@ -329,9 +329,7 @@ class NCDataSource: NSObject {
     }
 
     func getSectionValue(indexPath: IndexPath) -> String {
-        guard metadatasForSection.count > 0 else { return ""}
-
-        let metadataForSection = self.metadatasForSection[indexPath.section]
+        guard metadatasForSection.count > 0 , let metadataForSection = self.getMetadataForSection(indexPath.section) else { return ""}
         return metadataForSection.sectionValue
     }