Explorar el Código

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana hace 2 años
padre
commit
db4ca56867
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      iOSClient/Data/NCDataSource.swift

+ 1 - 0
iOSClient/Data/NCDataSource.swift

@@ -268,6 +268,7 @@ class NCDataSource: NSObject {
     }
 
     func isSameNumbersOfSections(numberOfSections: Int) -> Bool {
+        if self.metadatasForSection.count == 0 { return false }
         return numberOfSections == self.numberOfSections()
     }