Merge pull request #211 from ente-io/fix-file-not-found
fix file not found chrome error
This commit is contained in:
commit
7f88324a03
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue