Bläddra i källkod

Leave boolean values unchanged when editing endpoint.
Boolean type is now supported, no need to convert it to string.

Sergiu Miclea 8 år sedan
förälder
incheckning
f84e1f7de2
1 ändrade filer med 2 tillägg och 0 borttagningar
  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] + ""
             }
             }