mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(sql lab): table selector should display all the selected tables (#19257)
* fix: table Selector should clear once selected * Multi select * Add tests * refactor * PR comments
This commit is contained in:
@@ -1008,7 +1008,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
handleError={this.props.addDangerToast}
|
||||
schema={datasource.schema}
|
||||
sqlLabMode={false}
|
||||
tableName={datasource.table_name}
|
||||
tableValue={datasource.table_name}
|
||||
onSchemaChange={
|
||||
this.state.isEditMode
|
||||
? schema =>
|
||||
@@ -1024,7 +1024,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
)
|
||||
: undefined
|
||||
}
|
||||
onTableChange={
|
||||
onTableSelectChange={
|
||||
this.state.isEditMode
|
||||
? table =>
|
||||
this.onDatasourcePropChange('table_name', table)
|
||||
|
||||
Reference in New Issue
Block a user