mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Sqllab dont send empty queries to db (#3459)
* add lanscape?
* prevent empty queries from being sent to db
* Revert "add lanscape?"
This reverts commit b3d6e80af4.
* improve code style
* nit
* unnit
* renit
This commit is contained in:
committed by
Maxime Beauchemin
parent
745784fc97
commit
31b7b9a6a0
@@ -76,6 +76,9 @@ class SqlEditor extends React.PureComponent {
|
||||
this.props.actions.queryEditorSetSql(this.props.queryEditor, sql);
|
||||
}
|
||||
runQuery(runAsync = false) {
|
||||
if (!this.props.queryEditor.sql) {
|
||||
return;
|
||||
}
|
||||
let effectiveRunAsync = runAsync;
|
||||
if (!this.props.database.allow_run_sync) {
|
||||
effectiveRunAsync = true;
|
||||
|
||||
Reference in New Issue
Block a user