setFiles too after removingDeletedCollectionFiles

This commit is contained in:
Abhinav-grd 2021-07-27 12:18:49 +05:30
parent e105c1ec41
commit ff2b471518

View file

@ -48,6 +48,7 @@ export const syncFiles = async (collections: Collection[], setFiles: (files: Fil
let files = await removeDeletedCollectionFiles(collections, localFiles);
if (files.length !== localFiles.length) {
await localForage.setItem('files', files);
setFiles(files);
}
for (const collection of collections) {
if (!getToken()) {