Skip to content

Commit

Permalink
fix: properly keep state on queryEditorSetSql on tabstateview PUT (#1…
Browse files Browse the repository at this point in the history
…4579)

* send queryid up with setSQL

* pass latest query id

* update

* cleanup
  • Loading branch information
hughhhh authored May 12, 2021
1 parent bfbf767 commit 0d240c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 0d240c3

Please sign in to comment.