This commit is contained in:
Manav Rathi
2024-05-31 09:22:02 +05:30
parent 29f89ab901
commit 84ac002885

View File

@@ -31,7 +31,9 @@ export const getDefaultOptions = async () => {
return [
// TODO-ML(MR): Skip this for now if indexing is disabled (eventually
// the indexing status should not be tied to results).
...(await isFaceIndexingEnabled() ? [await getIndexStatusSuggestion()] : []),
...((await isFaceIndexingEnabled())
? [await getIndexStatusSuggestion()]
: []),
...(await convertSuggestionsToOptions(await getAllPeopleSuggestion())),
].filter((t) => !!t);
};