diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx index c6225d923..33689baa9 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx @@ -17,12 +17,12 @@ const sortMethod = (a: string, b: string) => a ? b ? a > b - ? 1 - : -1 - : 1 - : -1; + ? -1 + : 1 + : -1 + : 1; const Cell = (ruleCount: number) => ruleCount - ? {ruleCount.toLocaleString() } + ? { ruleCount.toLocaleString() } : null; \ No newline at end of file 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 7c22e6e9f..3fa5f33a9 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 @@ -6,7 +6,8 @@ import { IColumnVisibility, ITag } from "../../../interfaces"; export const Tags = (columnVisibility: IColumnVisibility[], tags: ITag[]) => { const tagsSorted = tags.sort((a: ITag, b: ITag) => a.name.localeCompare(b.name)); return ({ - Header: Tags, + Header: + Tags, accessor: "tagIds", filterable: true, filterMethod: (f: Filter, r: any[]) => filterMethod(f, r), @@ -46,13 +47,13 @@ const sortMethod = (a: number[], b: number[], tags: ITag[]): any => { ? tags.filter((t: ITag) => a.indexOf(t.id) > -1).map((t: ITag) => t.name).join() .toLowerCase() > tags.filter((t: ITag) => b.indexOf(t.id) > -1).map((t: ITag) => t.name).join().toLowerCase() - ? -1 - : 1 - : a.length > b.length ? 1 : -1 - : 1 - : -1; + : a.length > b.length + ? -1 + : 1 + : -1 + : 1; }; const Cell = (tagIds: number[], tags: ITag[]) => diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx index 272e7f93d..0542a50cf 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx @@ -18,10 +18,10 @@ const sortMethod = (a: string, b: string) => a && moment(a).isValid() ? (b && moment(b).isValid() ? (moment(a).isBefore(b) - ? -1 - : 1) - : 1) - : -1; + ? 1 + : -1) + : -1) + : 1; const Cell = (updatedDate: string) => updatedDate