From 72fab5db9276acde80154c49504fd239d6c304d5 Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Sat, 6 Feb 2021 13:21:49 +0530 Subject: [PATCH] skip deleted collections --- src/services/collectionService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/collectionService.ts b/src/services/collectionService.ts index 2a06a8715..14a8713c3 100644 --- a/src/services/collectionService.ts +++ b/src/services/collectionService.ts @@ -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);