From 72d19b6b35eeae141565e7fbd308632f2fb11775 Mon Sep 17 00:00:00 2001 From: Dmytro Mudrov Date: Wed, 17 Mar 2021 04:18:08 +0200 Subject: [PATCH] fix(sqllab): Table name and schema are encoded twice during fetching table metadata on SQL Lab page. (#13636) Co-authored-by: dmitry.mudrov --- superset-frontend/src/SqlLab/actions/sqlLab.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }) => {