fix: virtual dataset wont work (#16132)

This commit is contained in:
Yongjie Zhao 2021-08-07 13:43:12 +01:00 committed by GitHub
parent 85ae8e3477
commit 3bbcc30d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class DatasourceEditor extends React.PureComponent {
this.setState(prevState => ({ isEditMode: !prevState.isEditMode }));
}
onDatasourceChange(datasource, callback) {
onDatasourceChange(datasource, callback = this.validateAndChange) {
this.setState({ datasource }, callback);
}