skip deleted collections

This commit is contained in:
Abhinav-grd 2021-02-06 13:21:49 +05:30
parent 45fd07bc5f
commit 72fab5db92

View file

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