john-bodley commented on a change in pull request #9041: [sqllab] Showing
schema length only when schema selected
URL:
https://github.com/apache/incubator-superset/pull/9041#discussion_r372614198
##########
File path: superset/assets/src/components/TableSelector.jsx
##########
@@ -370,10 +370,12 @@ export default class TableSelector extends
React.PureComponent {
<div className="section">
<ControlLabel>
{t('See table schema')}{' '}
- <small>
- ({this.state.tableOptions.length} {t('in')}{' '}
- <i>{this.props.schema}</i>)
- </small>
+ {this.props.schema && (
+ <small>
+ ({this.state.tableOptions.length} {t('in')}{' '}
+ <i>{this.props.schema}</i>)
Review comment:
@etr2460 this is needed for the `(<n> in <schema>)`.
----------------------------------------------------------------
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]