mirror of
https://github.com/apache/superset.git
synced 2026-06-05 15:49:27 +00:00
chore: cleanup on catalog check for Gsheets (#21738)
This commit is contained in:
@@ -744,11 +744,11 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
engine_information,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (database_name === 'Google Sheets') {
|
||||
// only create a catalog if the DB is Google Sheets
|
||||
setDB({ type: ActionType.addTableCatalogSheet });
|
||||
if (engine === Engines.GSheet) {
|
||||
// only create a catalog if the DB is Google Sheets
|
||||
setDB({ type: ActionType.addTableCatalogSheet });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user