fix(sqllab): Table name and schema are encoded twice during fetching table metadata on SQL Lab page. (#13636)

Co-authored-by: dmitry.mudrov <dmitrym.mudrov@agileengine.com>
This commit is contained in:
Dmytro Mudrov
2021-03-17 04:18:08 +02:00
committed by GitHub
parent 98a26e7628
commit 72d19b6b35

View File

@@ -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 }) => {