skip deleted collections
This commit is contained in:
parent
45fd07bc5f
commit
72fab5db92
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue