michael-s-molina commented on code in PR #19598:
URL: https://github.com/apache/superset/pull/19598#discussion_r850617071
##########
superset-frontend/src/SqlLab/components/SqlEditor/index.jsx:
##########
@@ -227,7 +231,11 @@ class SqlEditor extends React.PureComponent {
// We need to measure the height of the sql editor post render to figure
the height of
// the south pane so it gets rendered properly
// eslint-disable-next-line react/no-did-mount-set-state
+ const db = this.props.database;
this.setState({ height: this.getSqlEditorHeight() });
+ if (!db || isEmpty(db)) {
+ this.setState({ showEmptyState: true });
Review Comment:
```suggestion
this.setEmptyState(true);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]