fix update project from db dialog not choosing the db of the connection (#21746)

This commit is contained in:
Kim Santiago
2023-01-27 10:17:31 -08:00
committed by GitHub
parent 75d455185a
commit b273cf5a65

View File

@@ -250,6 +250,11 @@ export class UpdateProjectFromDatabaseDialog {
values: values,
value: values[0],
});
// change the database dropdown value to the connection's database if there is one
if (connectionProfile.options.database && connectionProfile.options.database !== constants.master) {
this.databaseDropdown!.value = connectionProfile.options.database;
}
}
this.databaseDropdown!.loading = false;