浏览代码

fix(mobile): cache related crash (#593)

Matthias Rupp 2 年之前
父节点
当前提交
4c977d2c1f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mobile/lib/utils/immich_cache_info_repository.dart

+ 1 - 1
mobile/lib/utils/immich_cache_info_repository.dart

@@ -97,7 +97,7 @@ class ImmichCacheInfoRepository extends ImmichCacheRepository {
 
       return aTouched.compareTo(bTouched);
     });
-    return values.skip(capacity).toList();
+    return values.skip(capacity).take(10).toList();
   }
 
   @override