Skip to content

armgit / ente

Public Imported from GitHub
0

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

Make collection type check explicit in all collections page (defensive programming)

ashilknb4d4fcdb919c
diff --git a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
index 15e7a9cee7..00cd7671a1 100644
--- a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
@@ -78,7 +78,8 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
if (widget.viewType == UISectionType.homeCollections) {
collections = await CollectionService.instance.getCollections();
- } else {
+ } else if (widget.viewType == UISectionType.outgoingCollections ||
+ widget.viewType == UISectionType.incomingCollections) {
final sharedCollections =
await CollectionService.instance.getSharedCollections();
if (widget.viewType == UISectionType.outgoingCollections) {