浏览代码

CD-6 #resolve Adds endpoint validation when adding a new endpoint from wizard

George Vrancianu 9 年之前
父节点
当前提交
48ed416968
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/components/CloudItem/CloudItem.js

+ 1 - 3
src/components/CloudItem/CloudItem.js

@@ -89,9 +89,7 @@ class CloudItem extends Component {
   addConnection(connection) {
   addConnection(connection) {
     let newCredentials = { cloudName: this.props.cloud.name, connection: connection }
     let newCredentials = { cloudName: this.props.cloud.name, connection: connection }
     this.props.addCredentialsCallback(newCredentials)
     this.props.addCredentialsCallback(newCredentials)
-    this.setState({ showModal: false }, () => {
-      this.onCredentialsChange({ label: connection, value: connection })
-    })
+    this.onCredentialsChange({ label: connection, value: connection })
   }
   }
 
 
   closeModal() {
   closeModal() {