fix(sqllab): invalid table metadata request (#21304)

This commit is contained in:
JUST.in DO IT
2022-09-01 16:35:19 -07:00
committed by GitHub
parent 65a11b6f45
commit 222f1e7ea8
8 changed files with 185 additions and 82 deletions

View File

@@ -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,