Skip to content

armgit / ente

Public Imported from GitHub
0

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

t

Manav Rathif6bd99386e1d
diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
index aaca1c3906..fd073af643 100644
--- a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
+++ b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
@@ -5,7 +5,6 @@ import { t } from "i18next";
import { AppContext } from "pages/_app";
import { useContext } from "react";
import { components } from "react-select";
-import { IndexStatus } from "services/face/db-old";
import { Suggestion, SuggestionType } from "types/search";
const { Menu } = components;
@@ -35,7 +34,7 @@ const MenuWithPeople = (props) => {
(o) => o.type === SuggestionType.INDEX_STATUS,
)[0] as Suggestion;
- const indexStatus = indexStatusSuggestion?.value as IndexStatus;
+ const indexStatus = indexStatusSuggestion?.value;
return (
<Menu {...props}>
<Box my={1}>
diff --git a/web/apps/photos/src/services/searchService.ts b/web/apps/photos/src/services/searchService.ts
index e189899476..159bd7525c 100644
--- a/web/apps/photos/src/services/searchService.ts
+++ b/web/apps/photos/src/services/searchService.ts
@@ -180,7 +180,7 @@ export async function getIndexStatusSuggestion(): Promise<Suggestion> {
await mlIDbStorage.getIndexStatus(defaultMLVersion);
const indexStatus = convertToNewInterface(indexStatus0);
- let label;
+ let label: string;
switch (indexStatus.phase) {
case "scheduled":
label = t("INDEXING_SCHEDULED");