mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: use encodeURIComponent when getting table metadata (#14790)
This commit is contained in:
@@ -987,7 +987,9 @@ export function mergeTable(table, query) {
|
||||
function getTableMetadata(table, query, dispatch) {
|
||||
return SupersetClient.get({
|
||||
endpoint: encodeURI(
|
||||
`/api/v1/database/${query.dbId}/table/${table.name}/${table.schema}/`,
|
||||
`/api/v1/database/${query.dbId}/table/${encodeURIComponent(
|
||||
table.name,
|
||||
)}/${encodeURIComponent(table.schema)}/`,
|
||||
),
|
||||
})
|
||||
.then(({ json }) => {
|
||||
|
||||
Reference in New Issue
Block a user