diff --git a/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts b/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts index 6ffca94f1a..71fe2e31b2 100644 --- a/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts +++ b/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts @@ -382,6 +382,7 @@ export class PublishDatabaseDialog { private createDatabaseRow(view: azdata.ModelView): azdata.FlexContainer { this.targetDatabaseDropDown = view.modelBuilder.dropDown().withProperties({ + values: [this.getDefaultDatabaseName()], value: this.getDefaultDatabaseName(), ariaLabel: constants.databaseNameLabel, required: true, @@ -556,7 +557,8 @@ export class PublishDatabaseDialog { await this.updateConnectionComponents(result.connection, this.connectionId); if (result.databaseName) { - (this.targetDatabaseDropDown).value = result.databaseName; + this.targetDatabaseDropDown!.values?.push(result.databaseName); + this.targetDatabaseDropDown!.value = result.databaseName; } for (let key in result.sqlCmdVariables) {