mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
15f1c06e80
commit
3ef37f3f66
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ const filterMethod = (f: Filter, r: any[]): boolean => {
|
|||
return f.value === "any" ||
|
||||
(listLanguageIds
|
||||
? listLanguageIds.join(",").split(",").includes(f.value)
|
||||
: false);
|
||||
: f.value === "none");
|
||||
};
|
||||
|
||||
const Filter = (props: any, languages: ILanguage[]) =>
|
||||
|
|
@ -31,6 +31,7 @@ const Filter = (props: any, languages: ILanguage[]) =>
|
|||
style={{ width: "100%" }}
|
||||
value={props.filter ? props.filter.value : "any"}>
|
||||
<option value="any">Any</option>
|
||||
<option value="none">None</option>
|
||||
{languages.length > 0
|
||||
? languages.map((l: ILanguage, i: number) =>
|
||||
<option value={l.id} key={i}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue