add null check on Tags filter

closes #509
This commit is contained in:
Collin M. Barrett 2018-09-22 16:09:58 -05:00
parent bd77436b11
commit 5fe9a963a5

View file

@ -67,7 +67,9 @@ export const ListsTable = (props: IProps) => {
accessor: "tags",
filterable: true,
filterMethod: (f: any, r: any) =>
r[f.id].map((e: any) => e.name).join().toUpperCase().includes(f.value.toUpperCase()),
(r[f.id]
? r[f.id].map((e: any) => e.name).join().toUpperCase().includes(f.value.toUpperCase())
: null),
sortable: false,
Cell: (c: any) => c.value
? <div className="fl-tag-container">