From f17dd6193fcc2d17041e5e21411a79ac335538af Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sat, 22 Sep 2018 16:09:58 -0500 Subject: [PATCH] add null check on Tags filter closes #509 --- .../modules/home/components/listsTable/ListsTable.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx index 8eb82a412..ff069ea43 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx @@ -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 ?