mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user