From 08bd76e473cef000b724af07e60a9163c44a7b48 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 12 Sep 2020 09:53:47 -0500 Subject: [PATCH] =?UTF-8?q?fix(web):=20=F0=9F=90=9B=20fix=20syntax=20filte?= =?UTF-8?q?r=20not=20returning=20lists=20with=20multiple=20syntaxes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #1963 --- web/src/components/listsTable/ListsTable.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/components/listsTable/ListsTable.tsx b/web/src/components/listsTable/ListsTable.tsx index 597c863d7..97487bb47 100644 --- a/web/src/components/listsTable/ListsTable.tsx +++ b/web/src/components/listsTable/ListsTable.tsx @@ -206,10 +206,12 @@ export const ListsTable = (props: RouteComponentProps & Props) => { ) ), - value: s.id.toString(), + value: s.id, }))} onFilter={(value, record) => - record.syntaxIds ? record.syntaxIds.toString() === value : false + record.syntaxIds + ? record.syntaxIds.includes(value as number) + : false } render={(syntaxIds: number[]) => syntaxIds ? (