Skip to content

armgit / ente

Public Imported from GitHub
0

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

ignore empty embeddings

Abhinavd49b736ac196
diff --git a/apps/photos/src/utils/embedding.ts b/apps/photos/src/utils/embedding.ts
index 7800a1ee3d..bc7e4d2470 100644
--- a/apps/photos/src/utils/embedding.ts
+++ b/apps/photos/src/utils/embedding.ts
@@ -3,6 +3,9 @@ import { Embedding } from 'types/embedding';
export const getLatestVersionEmbeddings = (embeddings: Embedding[]) => {
const latestVersionEntities = new Map<number, Embedding>();
embeddings.forEach((embedding) => {
+ if (!embedding?.fileID) {
+ return;
+ }
const existingEmbeddings = latestVersionEntities.get(embedding.fileID);
if (
!existingEmbeddings ||