fix: properly keep state on queryEditorSetSql on tabstateview PUT (#14579)

* send queryid up with setSQL

* pass latest query id

* update

* cleanup
This commit is contained in:
Hugh A. Miles II 2021-05-12 15:20:26 -04:00 committed by GitHub
parent bfbf767663
commit 0d240c3841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();