diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js index b6b16e995..02a523a23 100644 --- a/superset-frontend/src/SqlLab/actions/sqlLab.js +++ b/superset-frontend/src/SqlLab/actions/sqlLab.js @@ -980,10 +980,7 @@ export function mergeTable(table, query) { function getTableMetadata(table, query, dispatch) { return SupersetClient.get({ endpoint: encodeURI( - `/api/v1/database/${query.dbId}/table/` + - `${encodeURIComponent(table.name)}/${encodeURIComponent( - table.schema, - )}/`, + `/api/v1/database/${query.dbId}/table/${table.name}/${table.schema}/`, ), }) .then(({ json }) => {