etr2460 commented on a change in pull request #8817: [sip-15] Displaying
endpoints for all start/end time ranges
URL:
https://github.com/apache/incubator-superset/pull/8817#discussion_r368080180
##########
File path:
superset/assets/src/explore/components/controls/DateFilterControl.jsx
##########
@@ -576,11 +576,12 @@ export default class DateFilterControl extends
React.Component {
const endpoints = this.props.endpoints;
value = value
.split(SEPARATOR)
- .map((v, idx) =>
- moment(v).isValid()
- ? v.replace('T00:00:00', '') +
- (endpoints ? ` (${endpoints[idx]})` : '')
- : v || (idx === 0 ? '-∞' : '∞'),
+ .map(
+ (v, idx) =>
Review comment:
```suggestion
(v, idx, values) =>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]