Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prevent concurrent modification in trash action

Neeraj Guptad38160078823
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart
index 98bb16e3d4..9095e8c090 100644
--- a/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart
@@ -173,7 +173,9 @@ class _AlbumSelectionActionWidgetState
final List<Collection> nonEmptyCollection = [];
final List errors = [];
- for (final collection in widget.selectedAlbums.albums) {
+ final List<Collection> selectedAlbums =
+ widget.selectedAlbums.albums.toList(growable: false);
+ for (final collection in selectedAlbums) {
if (collection.type == CollectionType.favorites) {
continue;
}