etr2460 commented on a change in pull request #8398: [SIP-15] Adding initial
framework
URL:
https://github.com/apache/incubator-superset/pull/8398#discussion_r339703454
##########
File path:
superset/assets/src/explore/components/controls/DateFilterControl.jsx
##########
@@ -346,13 +348,14 @@ export default class DateFilterControl extends
React.Component {
));
const timeFrames = COMMON_TIME_FRAMES.map((timeFrame) => {
const nextState = getStateFromCommonTimeFrame(timeFrame);
+ const endpoints = this.props.endpoints;
return (
<OverlayTrigger
key={timeFrame}
placement="left"
overlay={
<Tooltip id={`tooltip-${timeFrame}`}>
- {nextState.since}<br />{nextState.until}
+ {nextState.since} {endpoints ? `(${endpoints[0]})` : ''}<br
/>{nextState.until} {endpoints ? `(${endpoints[1]})` : ''}
Review comment:
these can be ```{endpoints && `(${endpoints[0]})`} ``` instead of the
ternary with the empty string
----------------------------------------------------------------
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]