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:
parent
bfbf767663
commit
0d240c3841
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue