From 0d240c3841fcfdf46717ab372074caedcf5c572e Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Wed, 12 May 2021 15:20:26 -0400 Subject: [PATCH] fix: properly keep state on queryEditorSetSql on tabstateview PUT (#14579) * send queryid up with setSQL * pass latest query id * update * cleanup --- 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 95216b8d06d78..8124907a31329 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_id: queryEditor.latestQueryId }, }) : Promise.resolve();