From ecb4489d11c2544588607fe31c0d67819bfc32b2 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 1 Oct 2018 20:57:01 -0500 Subject: [PATCH] support filtering by no Tags closes #269 --- .../modules/home/components/listsTable/columns/Tags.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/Tags.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/Tags.tsx index f5aad95da..2031860dc 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/Tags.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/Tags.tsx @@ -24,7 +24,7 @@ const filterMethod = (f: Filter, r: any[]): boolean => { return f.value === "any" || (listTagIds ? listTagIds.join(",").split(",").includes(f.value) - : false); + : f.value === "none"); }; const Filter = (props: any, tags: ITag[]) => @@ -32,6 +32,7 @@ const Filter = (props: any, tags: ITag[]) => style={{ width: "100%" }} value={props.filter ? props.filter.value : "any"}> + {tags.length > 0 ? tags.map((t: ITag, i: number) =>