mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: skip albums selected or excluded from backups from deletions (#21116)
* skip albums selected or excluded from backups from deletions * filter empty local albums from library page --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
fb59fa343d
commit
ed3997d844
3 changed files with 14 additions and 4 deletions
|
|
@ -18,7 +18,9 @@ final localAlbumServiceProvider = Provider<LocalAlbumService>(
|
|||
);
|
||||
|
||||
final localAlbumProvider = FutureProvider<List<LocalAlbum>>(
|
||||
(ref) => LocalAlbumService(ref.watch(localAlbumRepository)).getAll(sortBy: {SortLocalAlbumsBy.newestAsset}),
|
||||
(ref) => LocalAlbumService(ref.watch(localAlbumRepository))
|
||||
.getAll(sortBy: {SortLocalAlbumsBy.newestAsset})
|
||||
.then((albums) => albums.where((album) => album.assetCount > 0).toList()),
|
||||
);
|
||||
|
||||
final localAlbumThumbnailProvider = FutureProvider.family<LocalAsset?, String>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue