diff --git a/web/apps/photos/src/types/search/index.ts b/web/apps/photos/src/types/search/index.ts index 97f6d3170..29a1cffef 100644 --- a/web/apps/photos/src/types/search/index.ts +++ b/web/apps/photos/src/types/search/index.ts @@ -46,8 +46,6 @@ export type Search = { collection?: number; files?: number[]; person?: Person; - thing?: Thing; - text?: WordGroup; fileType?: FILE_TYPE; clip?: ClipSearchScores; }; diff --git a/web/apps/photos/src/worker/search.worker.ts b/web/apps/photos/src/worker/search.worker.ts index 31852a416..2667c0c85 100644 --- a/web/apps/photos/src/worker/search.worker.ts +++ b/web/apps/photos/src/worker/search.worker.ts @@ -57,14 +57,6 @@ function isSearchedFile(file: EnteFile, search: Search) { if (search?.person) { return search.person.files.indexOf(file.id) !== -1; } - - if (search?.thing) { - return search.thing.files.indexOf(file.id) !== -1; - } - - if (search?.text) { - return search.text.files.indexOf(file.id) !== -1; - } if (typeof search?.fileType !== "undefined") { return search.fileType === file.metadata.fileType; }