Merge pull request #19 from ente-io/fix-actual-file-loading

This commit is contained in:
Vishnu Mohandas 2021-02-16 12:51:12 +05:30 committed by GitHub
commit 1f2dfe8b0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,10 +264,7 @@ export default function Gallery(props) {
// ignore
}
}
if (
(!item.src || item.src === item.msrc) &&
!fetching[item.dataIndex]
) {
if (!fetching[item.dataIndex]) {
fetching[item.dataIndex] = true;
const url = await getFile(token, item);
updateSrcUrl(item.dataIndex, url);