瀏覽代碼

Fix order

Neeraj Gupta 2 年之前
父節點
當前提交
e7fc9043cc
共有 1 個文件被更改,包括 4 次插入3 次删除
  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) =>