Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
db4ca56867
1 changed files with 1 additions and 0 deletions
  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()
     }