Skip to content

Commit

Permalink
fix(sqllab): Table name and schema are encoded twice during fetching …
Browse files Browse the repository at this point in the history
…table metadata on SQL Lab page. (apache#13636)

Co-authored-by: dmitry.mudrov <[email protected]>
  • Loading branch information
didva and dmitry.mudrov authored Mar 17, 2021
1 parent 98a26e7 commit 72d19b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit 72d19b6

Please sign in to comment.