Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):hide-cached-people-shortcuts-when-ml-is-disabled

Aswin Asokcc78862fd763
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index e0be8ebe4b..f789858798 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -717,12 +717,13 @@ const EmptyState: React.FC<
break;
}
- const hasPeople = people && people.length > 0;
+ const hasPeople =
+ mlStatus?.phase != "disabled" && people && people.length > 0;
if (!hasPeople && !label) return null;
return (
<Box sx={{ textAlign: "left" }}>
- {people && people.length > 0 && (
+ {hasPeople && (
<>
<SearchPeopleHeader onClick={onSelectPeople} />
<SearchPeopleList {...{ people, onSelectPerson }} />