浏览代码

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 年之前
父节点
当前提交
db4ca56867
共有 1 个文件被更改,包括 1 次插入0 次删除
  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()
     }