tsc
This commit is contained in:
parent
d0ffb83d90
commit
6d769773cc
2 changed files with 0 additions and 10 deletions
|
@ -46,8 +46,6 @@ export type Search = {
|
|||
collection?: number;
|
||||
files?: number[];
|
||||
person?: Person;
|
||||
thing?: Thing;
|
||||
text?: WordGroup;
|
||||
fileType?: FILE_TYPE;
|
||||
clip?: ClipSearchScores;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue