mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(sql lab): SQL Lab Compile Query Delay (#20206)
This commit is contained in:
@@ -917,9 +917,13 @@ export function updateSavedQuery(query) {
|
||||
}
|
||||
|
||||
export function queryEditorSetSql(queryEditor, sql) {
|
||||
return { type: QUERY_EDITOR_SET_SQL, queryEditor, sql };
|
||||
}
|
||||
|
||||
export function queryEditorSetAndSaveSql(queryEditor, sql) {
|
||||
return function (dispatch) {
|
||||
// saved query and set tab state use this action
|
||||
dispatch({ type: QUERY_EDITOR_SET_SQL, queryEditor, sql });
|
||||
dispatch(queryEditorSetSql(queryEditor, sql));
|
||||
if (isFeatureEnabled(FeatureFlag.SQLLAB_BACKEND_PERSISTENCE)) {
|
||||
return SupersetClient.put({
|
||||
endpoint: encodeURI(`/tabstateview/${queryEditor.id}`),
|
||||
|
||||
Reference in New Issue
Block a user