You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/05/11 20:29:53 UTC

[superset] 01/01: send queryid up with setSQL

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hugh/fix-set-query
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7bb5115fb23e8b936a5d3065037f78ba39df6a4b
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue May 11 16:28:21 2021 -0400

    send queryid up with setSQL
---
 superset-frontend/src/SqlLab/actions/sqlLab.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index 95216b8..7d58f89 100644
--- a/superset-frontend/src/SqlLab/actions/sqlLab.js
+++ b/superset-frontend/src/SqlLab/actions/sqlLab.js
@@ -897,7 +897,7 @@ export function queryEditorSetSql(queryEditor, sql) {
     const sync = isFeatureEnabled(FeatureFlag.SQLLAB_BACKEND_PERSISTENCE)
       ? SupersetClient.put({
           endpoint: encodeURI(`/tabstateview/${queryEditor.id}`),
-          postPayload: { sql },
+          postPayload: { sql, latest_query: queryEditor.latestQueryId },
         })
       : Promise.resolve();