n/a -> empty string on grid dates to improve sorting

This commit is contained in:
Collin M. Barrett 2018-06-08 15:12:28 -05:00
parent f6dce9bc0d
commit 2a4554c116

View file

@ -102,7 +102,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
sortMethod: (a: any, b: any) => a > b ? 1 : -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).format("M-D-YY")
: "N/A"}</div>,
: ""}</div>,
style: { whiteSpace: "inherit" },
width: 75,
headerClassName: "d-none d-sm-block",
@ -117,7 +117,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
sortMethod: (a: any, b: any) => a > b ? 1 : -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).format("M-D-YY")
: "N/A"}</div>,
: ""}</div>,
style: { whiteSpace: "inherit" },
width: 75,
headerClassName: "d-none d-sm-block",