[fix] Force refresh table list broken (#7745)
This commit is contained in:
parent
17c4b72183
commit
9abcdccf96
|
|
@ -183,11 +183,11 @@ export default class TableSelector extends React.PureComponent {
|
|||
}
|
||||
this.props.onTableChange(tableName, schemaName);
|
||||
}
|
||||
changeSchema(schemaOpt) {
|
||||
changeSchema(schemaOpt, force = false) {
|
||||
const schema = schemaOpt ? schemaOpt.value : null;
|
||||
this.props.onSchemaChange(schema);
|
||||
this.setState({ schema }, () => {
|
||||
this.fetchTables();
|
||||
this.fetchTables(force);
|
||||
this.onChange();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue