Skip to content

Commit 619ad2c

Browse files
An error is reported after connecting to the cosmos db resource in application.properties, AB#2078610
1 parent fa3752f commit 619ad2c

File tree

1 file changed

+1
-3
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection

1 file changed

+1
-3
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/CosmosDatabaseResourcePanel.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ public JPanel getContentPanel() {
6969

7070
@Override
7171
public Resource<T> getValue() {
72-
final List<AzureValidationInfo> allValidationInfos = this.getAllValidationInfos(true);
73-
final boolean invalid = allValidationInfos.stream().anyMatch(info -> !info.isValid());
74-
return invalid ? null : Optional.ofNullable(cbDatabase.getValue()).map(resourceDefinition::define).orElse(null);
72+
return Optional.ofNullable(cbDatabase.getValue()).map(resourceDefinition::define).orElse(null);
7573
}
7674

7775
@Override

0 commit comments

Comments
 (0)