From b53fa2fd8fe2ae1d938250e2dadb899c466c09bd Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Mon, 26 Feb 2018 16:23:47 -0600 Subject: [PATCH] fix filter by name ref #276 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index a0a3afb9e..395401ca3 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -54,7 +54,7 @@ export class Home extends React.Component, IFilterListsS Header: "Languages", accessor: "languages", filterable: true, - filterMethod: (filter: any, row: any) => row[filter.id].join().toUpperCase() + filterMethod: (filter: any, row: any) => row[filter.id].map((e: any) => e.name).join().toUpperCase() .includes(filter.value.toUpperCase()), sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1, Cell: (cell: any) =>
{cell.value.map((e: any) => e.name).join(", ")}
,