From 4c977d2c1ff245145f68c8ee430a8533bc2cf2fe Mon Sep 17 00:00:00 2001 From: Matthias Rupp Date: Tue, 6 Sep 2022 15:10:52 +0200 Subject: [PATCH] fix(mobile): cache related crash (#593) --- mobile/lib/utils/immich_cache_info_repository.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/utils/immich_cache_info_repository.dart b/mobile/lib/utils/immich_cache_info_repository.dart index d3a20134d6..3b0240247a 100644 --- a/mobile/lib/utils/immich_cache_info_repository.dart +++ b/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