Browse Source

Merge pull request #67 from smiclea/CORWEB-95

Leave boolean values unchanged when editing endpoint CORWEB-95
Dorin Paslaru 9 years ago
parent
commit
b84a5e6687
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/AddCloudConnection/AddCloudConnection.js

+ 2 - 0
src/components/AddCloudConnection/AddCloudConnection.js

@@ -82,6 +82,8 @@ class AddCloudConnection extends Reflux.Component {
                 // credentials['user_credentials'][j] = credentials[i][j]
                 // credentials['user_credentials'][j] = credentials[i][j]
                 newCredentials[j] = credentials[i][j]
                 newCredentials[j] = credentials[i][j]
               }
               }
+            } else if (typeof credentials[i] === 'boolean') {
+              newCredentials[i] = credentials[i]
             } else {
             } else {
               newCredentials[i] = credentials[i] + ""
               newCredentials[i] = credentials[i] + ""
             }
             }