mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(sqllab): invalid table metadata request (#21304)
This commit is contained in:
@@ -1137,8 +1137,9 @@ function getTableExtendedMetadata(table, query, dispatch) {
|
||||
);
|
||||
}
|
||||
|
||||
export function addTable(query, database, tableName, schemaName) {
|
||||
return function (dispatch) {
|
||||
export function addTable(queryEditor, database, tableName, schemaName) {
|
||||
return function (dispatch, getState) {
|
||||
const query = getUpToDateQuery(getState(), queryEditor, queryEditor.id);
|
||||
const table = {
|
||||
dbId: query.dbId,
|
||||
queryEditorId: query.id,
|
||||
|
||||
Reference in New Issue
Block a user