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:43:12 UTC

[superset] branch hugh/fix-set-query updated: pass latest query id

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


The following commit(s) were added to refs/heads/hugh/fix-set-query by this push:
     new f347892  pass latest query id
f347892 is described below

commit f3478923414c6171cde551eeb5d933ab1375ab6c
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue May 11 16:42:06 2021 -0400

    pass latest query id
---
 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 7d58f89..8124907 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, latest_query: queryEditor.latestQueryId },
+          postPayload: { sql, latest_query_id: queryEditor.latestQueryId },
         })
       : Promise.resolve();