[fix] Force refresh table list broken (#7745)

This commit is contained in:
Beto Dealmeida 2019-06-20 21:50:36 -07:00 committed by GitHub
parent 17c4b72183
commit 9abcdccf96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});
}