Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix npe on main

Manav Rathied6a72eb3ce5
diff --git a/web/apps/photos/src/services/download/index.ts b/web/apps/photos/src/services/download/index.ts
index bb7cf0bcf8..d2ad6b1f77 100644
--- a/web/apps/photos/src/services/download/index.ts
+++ b/web/apps/photos/src/services/download/index.ts
@@ -304,7 +304,7 @@ class DownloadManagerImpl {
if (cachedBlob) res = new Response(cachedBlob);
else {
res = await this.downloadClient.downloadFileStream(file);
- this?.fileCache.put(cacheKey, await res.blob());
+ this.fileCache?.put(cacheKey, await res.blob());
}
const reader = res.body.getReader();