This is an automated email from the ASF dual-hosted git repository.

jli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 9da30956c0 fix(Datasource): handle undefined datasource_type in 
fetchSyncedColumns (#32218)
9da30956c0 is described below

commit 9da30956c0628496958585d23cb6aa30abbfc693
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]>
---
 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,

Reply via email to