Przeglądaj źródła

Merge pull request #67 from smiclea/CORWEB-95

Leave boolean values unchanged when editing endpoint CORWEB-95
Dorin Paslaru 8 lat temu
rodzic
commit
b84a5e6687

+ 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] + ""
             }