chore: cleanup on catalog check for Gsheets (#21738)

This commit is contained in:
Hugh A. Miles II 2022-10-11 15:19:12 -04:00 committed by GitHub
parent 605b6920a6
commit bd3166b603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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 });
}
}
};