Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix preview removed on conversion failure

Abhinav29f8f4d328bc
diff --git a/apps/photos/src/utils/photoFrame/index.ts b/apps/photos/src/utils/photoFrame/index.ts
index 3010104a22..90be28dc7b 100644
--- a/apps/photos/src/utils/photoFrame/index.ts
+++ b/apps/photos/src/utils/photoFrame/index.ts
@@ -43,8 +43,6 @@ export function updateFileMsrcProps(file: EnteFile, url: string) {
file.isSourceLoaded = false;
file.conversionFailed = false;
file.isConverted = false;
- file.src = null;
- file.html = null;
if (file.metadata.fileType === FILE_TYPE.IMAGE) {
file.src = url;
} else {
@@ -103,7 +101,6 @@ export async function updateFileSrcProps(
file.originalVideoURL = originalVideoURL;
file.isConverted = isConverted;
file.conversionFailed = conversionFailed;
- file.src = null;
if (!isPlayable) {
return;