don't show broken Updated filter box

ref #378
This commit is contained in:
Collin Barrett 2018-09-15 22:13:46 -05:00
parent e593fa4b93
commit 06e1de7de7

View file

@ -122,7 +122,7 @@ export const ListsTable = (props: IProps) => {
{
Header: "Updated",
accessor: "updatedDate",
filterable: true,
filterable: false,
filterMethod: (f: any, r: any) => r[f.id].includes(f.value),
sortMethod: (a: any, b: any) =>
moment(a).isValid() ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1) : -1,