hughhhh commented on a change in pull request #5915: [WIP] Google spreadsheets
URL:
https://github.com/apache/incubator-superset/pull/5915#discussion_r218879929
##########
File path: superset/assets/src/SqlLab/components/ExploreResultsButton.jsx
##########
@@ -159,11 +159,12 @@ class ExploreResultsButton extends React.PureComponent {
</div>);
}
render() {
+ const allowsSubquery = this.props.database &&
this.props.database.allows_subquery;
Review comment:
nit: deconstruct props on the line before then you can just use
`allows_subquery` in `disabled` param
```
const {
database: {
allows_subquery
} } = this.props
```
https://github.com/lyft/marketdx/blob/master/src/components/Diagnosis/index.jsx#L55
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]