mirror of
https://github.com/apache/superset.git
synced 2026-07-15 03:05:43 +00:00
fix(SqlLab): Hit tableschemaview with a valid queryEditorId (#35341)
This commit is contained in:
@@ -1017,12 +1017,13 @@ export function runTablePreviewQuery(newTable, runPreviewOnly) {
|
||||
};
|
||||
}
|
||||
|
||||
export function syncTable(table, tableMetadata) {
|
||||
export function syncTable(table, tableMetadata, finalQueryEditorId) {
|
||||
return function (dispatch) {
|
||||
const finalTable = { ...table, queryEditorId: finalQueryEditorId };
|
||||
const sync = isFeatureEnabled(FeatureFlag.SqllabBackendPersistence)
|
||||
? SupersetClient.post({
|
||||
endpoint: encodeURI('/tableschemaview/'),
|
||||
postPayload: { table: { ...tableMetadata, ...table } },
|
||||
postPayload: { table: { ...tableMetadata, ...finalTable } },
|
||||
})
|
||||
: Promise.resolve({ json: { id: table.id } });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user