fix(web): 🐛 fix syntax filter not returning lists with multiple syntaxes

closes #1963
This commit is contained in:
Collin M. Barrett 2020-09-12 09:53:47 -05:00
parent d734f8eaa6
commit 08bd76e473

View file

@ -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 ? (