]> source.dussan.org Git - sonarqube.git/commitdiff
fix resetting of settings
authorStas Vilchik <vilchiks@gmail.com>
Thu, 17 Nov 2016 09:08:58 +0000 (10:08 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 17 Nov 2016 09:08:58 +0000 (10:08 +0100)
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.js
server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.js

index 13cbbfabc851a27effa385fff244d6d361250cea..d5cf5726892efdfb9a532f3ea675b5de86864309 100644 (file)
@@ -33,7 +33,7 @@ export default class InputForText extends React.Component {
             name={this.props.name}
             className="input-super-large text-top"
             rows="5"
-            value={this.props.value}
+            value={this.props.value || ''}
             onChange={e => this.handleInputChange(e)}/>
     );
   }
index 6a7e24a6f8e3f49ed8ced95a039ac299d6b188e6..82c2e7dfc9e438d5b2936e0debf1443b93c8ec24 100644 (file)
@@ -38,7 +38,7 @@ export default class SimpleInput extends React.Component {
             name={this.props.name}
             className={this.props.className + ' text-top'}
             type={this.props.type}
-            value={this.props.value}
+            value={this.props.value || ''}
             onChange={e => this.handleInputChange(e)}/>
     );
   }