Browse Source

Fix order

Neeraj Gupta 2 năm trước cách đây
mục cha
commit
e7fc9043cc
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      lib/ui/collections_gallery_widget.dart

+ 4 - 3
lib/ui/collections_gallery_widget.dart

@@ -84,14 +84,15 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
   Future<List<CollectionWithThumbnail>> _getCollections() async {
     final List<CollectionWithThumbnail> collectionsWithThumbnail =
         await CollectionsService.instance.getCollectionsWithThumbnails();
+
+    // Remove uncategorized collection
+    collectionsWithThumbnail
+        .removeWhere((t) => t.collection.type == CollectionType.uncategorized);
     final ListMatch<CollectionWithThumbnail> favMathResult =
         collectionsWithThumbnail.splitMatch(
       (element) => element.collection.type == CollectionType.favorites,
     );
 
-    // Remove uncategorized collection
-    collectionsWithThumbnail
-        .removeWhere((t) => t.collection.type == CollectionType.uncategorized);
     // Hide fav collection if it's empty and not shared
     favMathResult.matched.removeWhere(
       (element) =>