diff --git a/src/explorer/connectionTreeItem.ts b/src/explorer/connectionTreeItem.ts index 680d89c2f..9c47423a4 100644 --- a/src/explorer/connectionTreeItem.ts +++ b/src/explorer/connectionTreeItem.ts @@ -115,7 +115,9 @@ export default class ConnectionTreeItem } try { - const dbs = await dataService.listDatabases(); + const dbs = await dataService.listDatabases({ + nameOnly: true, + }); return dbs.map((dbItem) => dbItem.name); } catch (error) { throw new Error( diff --git a/src/participant/participant.ts b/src/participant/participant.ts index de958f678..09534753f 100644 --- a/src/participant/participant.ts +++ b/src/participant/participant.ts @@ -323,7 +323,9 @@ export default class ParticipantController { } try { - const databases = await dataService.listDatabases(); + const databases = await dataService.listDatabases({ + nameOnly: true, + }); return databases.map((db) => ({ label: db.name, data: db.name, @@ -408,7 +410,9 @@ export default class ParticipantController { } try { - const databases = await dataService.listDatabases(); + const databases = await dataService.listDatabases({ + nameOnly: true, + }); return [ ...databases.slice(0, MAX_MARKDOWN_LIST_LENGTH).map((db) => this._createMarkdownLink({