Skip to content

Commit

Permalink
Fix untitled dataset name on SaveDatasetModal in explore
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Jul 29, 2022
1 parent da90320 commit 76375a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/utils/datasourceUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
export const getDatasourceAsSaveableDataset = source => ({
columns: source.columns,
name: source?.datasource_name || 'Untitled',
name: source?.datasource_name || source?.name || 'Untitled',
dbId: source.database.id,
sql: source?.sql || '',
schema: source?.schema,
Expand Down

0 comments on commit 76375a8

Please sign in to comment.