Skip to content

Commit

Permalink
Fixes compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon committed Nov 27, 2024
1 parent e8380f5 commit edd9662
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vscode-extension/src/connectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,13 @@ export function getConnectionDatabases(): Pick<

if (
!schemaPoller.metadata ||
!schemaPoller.metadata.dbSchema?.databaseNames
!schemaPoller.metadata.dbSchema?.databasesInfo
) {
return databases;
}

return schemaPoller.metadata.dbSchema.databaseNames.map((name) => {
return schemaPoller.metadata.dbSchema.databasesInfo.map((dbInfo) => {
const name = dbInfo.name;
const database = databases.find((db) => db.name === name);
if (!database) {
return {
Expand Down

0 comments on commit edd9662

Please sign in to comment.