فهرست منبع

skip deleted collections

Abhinav-grd 4 سال پیش
والد
کامیت
72fab5db92
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/services/collectionService.ts

+ 2 - 1
src/services/collectionService.ts

@@ -119,7 +119,8 @@ export const fetchUpdatedCollections = async (token: string, key: string) => {
     });
     });
     let collections = [];
     let collections = [];
     for (const [_, collection] of latestCollectionsInstances) {
     for (const [_, collection] of latestCollectionsInstances) {
-        collections.push(collection);
+        if (!collection.isDeleted)
+            collections.push(collection);
     }
     }
     await localForage.setItem('fav-collection', favCollection);
     await localForage.setItem('fav-collection', favCollection);
     await localForage.setItem('collections', collections);
     await localForage.setItem('collections', collections);