Skip to content

Commit

Permalink
fix(Datasource): handle undefined datasource_type in fetchSyncedColum…
Browse files Browse the repository at this point in the history
…ns (#32218)

Co-authored-by: Erkka Tahvanainen <[email protected]>
  • Loading branch information
tahvane1 and Erkka Tahvanainen authored Feb 14, 2025
1 parent 9c7835a commit 9da3095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/components/Datasource/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9da3095

Please sign in to comment.