fix: virtual dataset wont work (#16132)

(cherry picked from commit 3bbcc30d69)
This commit is contained in:
Yongjie Zhao
2021-08-07 13:43:12 +01:00
committed by Ville Brofeldt
parent eb2d8882cf
commit 5b04835d6e

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