Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix lints

Manav Rathi262ff019997d
diff --git a/web/packages/new/photos/services/ml/index.ts b/web/packages/new/photos/services/ml/index.ts
index fb58dcf30d..101d33da91 100644
--- a/web/packages/new/photos/services/ml/index.ts
+++ b/web/packages/new/photos/services/ml/index.ts
@@ -22,7 +22,7 @@ import type { UploadItem } from "../upload/types";
import { pullUserEntities } from "../user-entity";
import { regenerateFaceCrops } from "./crop";
import { clearMLDB, getFaceIndex, getIndexableAndIndexedCounts } from "./db";
-import { reconstructPeople, type NamedPerson, type Person } from "./people";
+import { reconstructPeople, type Person } from "./people";
import { MLWorker } from "./worker";
import type { CLIPMatches } from "./worker-types";
@@ -551,7 +551,11 @@ const updatePeople = async () => {
const people = await reconstructPeople();
// Notify the search subsystem of the update (search only uses named ones).
- setSearchPeople(people.filter((p): p is NamedPerson => !!p.name));
+ // See: [Note: strict mode migration]
+ //
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+ setSearchPeople(people.filter((p) => typeof p.name !== "undefined"));
// Update our in-memory list of people.
setPeopleSnapshot(people);