Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Allow thumbnail cache to be optional

Manav Rathi0f46a25a5d8e
diff --git a/web/apps/photos/src/services/download/index.ts b/web/apps/photos/src/services/download/index.ts
index 37eeac440d..70934dac06 100644
--- a/web/apps/photos/src/services/download/index.ts
+++ b/web/apps/photos/src/services/download/index.ts
@@ -150,7 +150,7 @@ class DownloadManagerImpl {
this.ensureInitialized();
const key = file.id.toString();
- const cached = await this.thumbnailCache.get(key);
+ const cached = await this.thumbnailCache?.get(key);
if (cached) return new Uint8Array(await cached.arrayBuffer());
if (localOnly) return null;