You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by yo...@apache.org on 2021/08/07 12:44:45 UTC
[superset] branch master updated: fix: virtual dataset wont work
(#16132)
This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 3bbcc30 fix: virtual dataset wont work (#16132)
3bbcc30 is described below
commit 3bbcc30d69562a7723299d6d673d2b3397c91561
Author: Yongjie Zhao <yo...@gmail.com>
AuthorDate: Sat Aug 7 13:43:12 2021 +0100
fix: virtual dataset wont work (#16132)
---
superset-frontend/src/datasource/DatasourceEditor.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/datasource/DatasourceEditor.jsx b/superset-frontend/src/datasource/DatasourceEditor.jsx
index a7bcab6..dfd323e 100644
--- a/superset-frontend/src/datasource/DatasourceEditor.jsx
+++ b/superset-frontend/src/datasource/DatasourceEditor.jsx
@@ -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);
}