Skip to content

Commit 2f204c5

Browse files
fix behavior of server/account combobox in datasource panel.
1 parent 439d18c commit 2f204c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/dbtools/AzureCosmosDbAccountParamEditor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public AzureCosmosDbAccountParamEditor(@Nonnull DatabaseAccountKind kind, @Nonnu
8383
combox.addValueChangedListener(this::setAccount);
8484
interchange.addPersistentProperty(KEY_COSMOS_ACCOUNT_ID);
8585
final String accountId = interchange.getProperty(KEY_COSMOS_ACCOUNT_ID);
86-
final boolean isModifying = StringUtils.isNotBlank(dataSource.getUsername());
87-
if (isModifying && StringUtils.isNotBlank(accountId)) {
86+
if (StringUtils.isNotBlank(accountId)) {
8887
combox.setValue(new AzureComboBox.ItemReference<>(i -> i.getId().equals(accountId)));
8988
}
9089

0 commit comments

Comments
 (0)