Merge pull request #211 from ente-io/fix-file-not-found

fix file not found chrome error
This commit is contained in:
Vishnu Mohandas 2021-11-03 21:58:25 +05:30 committed by GitHub
commit 7f88324a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ import {
appendPhotoSwipeProps,
decryptFile,
mergeMetadata,
removeUnnecessaryFileProps,
sortFiles,
} from 'utils/file';
import CryptoWorker from 'utils/crypto';
@ -131,7 +132,7 @@ interface TrashRequestItems {
}
export const getLocalFiles = async () => {
const files: Array<File> = (await localForage.getItem<File[]>(FILES)) || [];
return files;
return removeUnnecessaryFileProps(files);
};
export const syncFiles = async (