From d734f8eaa68aa6d349a28cc417d2abfd4a1048e7 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 12 Sep 2020 09:44:52 -0500 Subject: [PATCH] =?UTF-8?q?fix(web):=20=F0=9F=90=9B=20rm=20dup=20syntax=20?= =?UTF-8?q?name=20in=20filter=20dropdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #1959 --- web/src/components/listsTable/ListsTable.tsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/web/src/components/listsTable/ListsTable.tsx b/web/src/components/listsTable/ListsTable.tsx index 1dd121f29..597c863d7 100644 --- a/web/src/components/listsTable/ListsTable.tsx +++ b/web/src/components/listsTable/ListsTable.tsx @@ -197,8 +197,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => { text: ( <> -   - {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("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 ? (