add collectionToRemove not found locally check
This commit is contained in:
parent
f674c8bc70
commit
36c2c77546
|
@ -288,6 +288,9 @@ export const removePublicCollectionWithFiles = async (
|
|||
const collectionToRemove = publicCollections.find(
|
||||
(collection) => (collection.key = collectionKey)
|
||||
);
|
||||
if (!collectionToRemove) {
|
||||
return;
|
||||
}
|
||||
await localForage.setItem(
|
||||
PUBLIC_COLLECTIONS_TABLE,
|
||||
publicCollections.filter(
|
||||
|
|
Loading…
Reference in a new issue