This is an automated email from the ASF dual-hosted git repository. michaelsmolina pushed a commit to branch 5.0 in repository https://gitbox.apache.org/repos/asf/superset.git
commit ed217ce903f2bbf5a5e24562ef9a278c9e2c68de Author: Erkka Tahvanainen <[email protected]> AuthorDate: Fri Feb 14 03:31:17 2025 +0200 fix(Datasource): handle undefined datasource_type in fetchSyncedColumns (#32218) Co-authored-by: Erkka Tahvanainen <[email protected]> (cherry picked from commit 9da30956c0628496958585d23cb6aa30abbfc693) --- superset-frontend/src/components/Datasource/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Datasource/utils.js b/superset-frontend/src/components/Datasource/utils.js index 001a1a30b7..138a954730 100644 --- a/superset-frontend/src/components/Datasource/utils.js +++ b/superset-frontend/src/components/Datasource/utils.js @@ -121,7 +121,7 @@ export function updateColumns(prevCols, newCols, addSuccessToast) { export async function fetchSyncedColumns(datasource) { const params = { - datasource_type: datasource.type, + datasource_type: datasource.type || datasource.datasource_type, database_name: datasource.database?.database_name || datasource.database?.name, catalog_name: datasource.catalog,
