mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(sqllab): unable to remove table (#27636)
This commit is contained in:
@@ -1131,9 +1131,11 @@ export function removeTables(tables) {
|
||||
const sync = isFeatureEnabled(FeatureFlag.SqllabBackendPersistence)
|
||||
? Promise.all(
|
||||
tablesToRemove.map(table =>
|
||||
SupersetClient.delete({
|
||||
endpoint: encodeURI(`/tableschemaview/${table.id}`),
|
||||
}),
|
||||
table.initialized
|
||||
? SupersetClient.delete({
|
||||
endpoint: encodeURI(`/tableschemaview/${table.id}`),
|
||||
})
|
||||
: Promise.resolve(),
|
||||
),
|
||||
)
|
||||
: Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user