Explorar o código

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

Sergiu Miclea %!s(int64=8) %!d(string=hai) anos
pai
achega
f84e1f7de2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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]
                 newCredentials[j] = credentials[i][j]
               }
+            } else if (typeof credentials[i] === 'boolean') {
+              newCredentials[i] = credentials[i]
             } else {
               newCredentials[i] = credentials[i] + ""
             }