This commit is contained in:
Manav Rathi 2024-05-09 15:50:32 +05:30
parent 139b56071a
commit 0d3a76c065
No known key found for this signature in database

View file

@ -259,7 +259,7 @@ const isImageOrLivePhoto = (file: EnteFile) => {
*/
const createRenderableURL = async (castToken: string, file: EnteFile) => {
const imageBlob = await renderableImageBlob(castToken, file);
const resizedBlob = needsResize(file) ? await resize(imageBlob) : imageBlob;
const resizedBlob = needsResize() ? await resize(imageBlob) : imageBlob;
return URL.createObjectURL(resizedBlob);
};