Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathi5a3382087752
diff --git a/web/packages/new/photos/services/ml/cluster.ts b/web/packages/new/photos/services/ml/cluster.ts
index 94fcc1c2c1..d9c69a2bb0 100644
--- a/web/packages/new/photos/services/ml/cluster.ts
+++ b/web/packages/new/photos/services/ml/cluster.ts
@@ -322,7 +322,7 @@ const clusterBatchLinear = async (
}
}
- if (nnIndex) {
+ if (nnIndex !== undefined) {
// Found a neighbour close enough, add ourselves to its cluster.
const nnFace = ensure(faces[nnIndex]);
const nnClusterIndex = ensure(