mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
refactor: Changes the DatabaseSelector and TableSelector to use the new Select component (#16483)
This commit is contained in:
committed by
GitHub
parent
1d5100daa2
commit
596e1cdf9b
@@ -91,7 +91,13 @@ export default class SqlEditorLeftBar extends React.PureComponent {
|
||||
}
|
||||
|
||||
onTableChange(tableName, schemaName) {
|
||||
this.props.actions.addTable(this.props.queryEditor, tableName, schemaName);
|
||||
if (tableName && schemaName) {
|
||||
this.props.actions.addTable(
|
||||
this.props.queryEditor,
|
||||
tableName,
|
||||
schemaName,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
onToggleTable(tables) {
|
||||
@@ -171,7 +177,6 @@ export default class SqlEditorLeftBar extends React.PureComponent {
|
||||
onTablesLoad={this.onTablesLoad}
|
||||
schema={qe.schema}
|
||||
sqlLabMode
|
||||
tableNameSticky={false}
|
||||
/>
|
||||
<div className="divider" />
|
||||
<StyledScrollbarContainer>
|
||||
|
||||
Reference in New Issue
Block a user