Skip fetching diff for a collection that has been deleted

This commit is contained in:
Vishnu Mohandas 2021-02-08 14:06:23 +05:30
parent 71af57409a
commit dfad5dd8fa

View file

@ -82,6 +82,7 @@ export const fetchFiles = async (
for (let collection of collections) {
if (collection.isDeleted) {
deletedCollection.add(collection.id);
continue;
}
const files = await getFiles(collection, null, 100, token);
fetchedFiles.push(...files);