mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
a638d4e656
commit
d734f8eaa6
1 changed files with 4 additions and 13 deletions
|
|
@ -197,8 +197,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => {
|
|||
text: (
|
||||
<>
|
||||
<SyntaxTag name={s.name} showLabel={false} />
|
||||
|
||||
{s.name} (
|
||||
(
|
||||
{
|
||||
visibleLists.filter(
|
||||
(li) => li.syntaxIds && li.syntaxIds.includes(s.id)
|
||||
|
|
@ -229,11 +228,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => {
|
|||
key="Languages"
|
||||
dataIndex={nameof<List>("iso6391s")}
|
||||
sorter={(a, b) =>
|
||||
languageArraySorter(
|
||||
a.iso6391s,
|
||||
b.iso6391s,
|
||||
languages
|
||||
)
|
||||
languageArraySorter(a.iso6391s, b.iso6391s, languages)
|
||||
}
|
||||
width={129}
|
||||
className={styles.nogrow}
|
||||
|
|
@ -244,9 +239,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => {
|
|||
{l.name} (
|
||||
{
|
||||
visibleLists.filter(
|
||||
(li) =>
|
||||
li.iso6391s &&
|
||||
li.iso6391s.includes(l.iso6391)
|
||||
(li) => li.iso6391s && li.iso6391s.includes(l.iso6391)
|
||||
).length
|
||||
}
|
||||
)
|
||||
|
|
@ -255,9 +248,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => {
|
|||
value: l.iso6391.toString(),
|
||||
}))}
|
||||
onFilter={(value, record) =>
|
||||
record.iso6391s
|
||||
? record.iso6391s.includes(value as string)
|
||||
: false
|
||||
record.iso6391s ? record.iso6391s.includes(value as string) : false
|
||||
}
|
||||
render={(languageIds: string[]) =>
|
||||
languageIds ? (
|
||||
|
|
|
|||
Loading…
Reference in a new issue