mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 09:35:37 -05:00
Filter out system dbs from create project from db dialog (#15610)
* filter out system dbs from create project from db dialog * use includes instead of find
This commit is contained in:
@@ -228,7 +228,9 @@ export class CreateProjectFromDatabaseDialog {
|
||||
// populate database dropdown with the databases for this connection
|
||||
if (connectionId) {
|
||||
this.sourceDatabaseDropDown!.loading = true;
|
||||
const databaseValues = await azdata.connection.listDatabases(connectionId);
|
||||
const databaseValues = (await azdata.connection.listDatabases(connectionId))
|
||||
// filter out system dbs
|
||||
.filter(db => !constants.systemDbs.includes(db));
|
||||
|
||||
this.sourceDatabaseDropDown!.values = databaseValues;
|
||||
this.sourceDatabaseDropDown!.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user