Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: exclude favorites from available collections in BaseInfoPage

AmanRajSinghMourya20ffefdb9adf
diff --git a/mobile/apps/locker/lib/ui/pages/base_info_page.dart b/mobile/apps/locker/lib/ui/pages/base_info_page.dart
index d02c131c52..ed3fd2b5e9 100644
--- a/mobile/apps/locker/lib/ui/pages/base_info_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/base_info_page.dart
@@ -181,9 +181,13 @@ abstract class BaseInfoPageState<T extends InfoData, W extends BaseInfoPage<T>>
try {
final collections = await CollectionService.instance.getCollections();
setState(() {
- // Filter out uncategorized collection (it will be shown separately)
+ // Filter out uncategorized and favorites collections
_availableCollections = collections
- .where((c) => c.type != CollectionType.uncategorized)
+ .where(
+ (c) =>
+ c.type != CollectionType.uncategorized &&
+ c.type != CollectionType.favorites,
+ )
.toList();
// Pre-select a default collection if available
if (_availableCollections.isNotEmpty) {