[date-filter] Adding minus infinity (#6968)

* [date-filter] Adding minus infinity

* Update DateFilterControl.jsx

eqeqeq
This commit is contained in:
John Bodley 2019-03-04 11:34:21 -08:00 committed by Krist Wongsuphasawat
parent 48431ab5b9
commit aded70a156
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ export default class DateFilterControl extends React.Component {
}
render() {
let value = this.props.value || defaultProps.value;
value = value.split(SEPARATOR).map(v => v.replace('T00:00:00', '') || '∞').join(SEPARATOR);
value = value.split(SEPARATOR).map((v, idx) => v.replace('T00:00:00', '') || (idx === 0 ? '-∞' : '∞')).join(SEPARATOR);
return (
<div>
<ControlHeader {...this.props} />