fix: use encodeURIComponent when getting table metadata (#14790)
This commit is contained in:
parent
33cee65c3b
commit
65f90096fd
|
|
@ -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 }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue