Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor: initialize _availableCollections to an empty list in AddToCollectionDialog and FileRestoreDialog

AmanRajSinghMourya9217b550b512
diff --git a/mobile/apps/locker/lib/ui/components/add_to_collection_sheet.dart b/mobile/apps/locker/lib/ui/components/add_to_collection_sheet.dart
index 246be8d4b9..c4aba739fa 100644
--- a/mobile/apps/locker/lib/ui/components/add_to_collection_sheet.dart
+++ b/mobile/apps/locker/lib/ui/components/add_to_collection_sheet.dart
@@ -31,7 +31,7 @@ class AddToCollectionDialog extends StatefulWidget {
class _AddToCollectionDialogState extends State<AddToCollectionDialog> {
final Set<int> _selectedCollectionIds = <int>{};
- late List<Collection> _availableCollections;
+ List<Collection> _availableCollections = [];
@override
void initState() {
diff --git a/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart b/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart
index aa3e0a012c..d2f2d90d8f 100644
--- a/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart
+++ b/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart
@@ -31,7 +31,7 @@ class FileRestoreDialog extends StatefulWidget {
class _FileRestoreDialogState extends State<FileRestoreDialog> {
final Set<int> _selectedCollectionIds = <int>{};
- late List<Collection> _availableCollections;
+ List<Collection> _availableCollections = [];
@override
void initState() {