Skip to content

Commit

Permalink
chore: cleanup on catalog check for Gsheets (#21738)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Oct 11, 2022
1 parent 605b692 commit bd3166b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
};

Expand Down

0 comments on commit bd3166b

Please sign in to comment.