diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-17 10:08:58 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-17 10:08:58 +0100 |
commit | ee2a8a407ede8eb0896090e2d1263f08e11b017d (patch) | |
tree | 03d0e5065759d881cf2231a5dca2fd7f85c1a097 /server/sonar-web/src/main/js/apps/settings/components | |
parent | 4206ca59b615c6bdb4d3d7c4ab0b4241d1959180 (diff) | |
download | sonarqube-ee2a8a407ede8eb0896090e2d1263f08e11b017d.tar.gz sonarqube-ee2a8a407ede8eb0896090e2d1263f08e11b017d.zip |
fix resetting of settings
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/components')
-rw-r--r-- | server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.js b/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.js index 13cbbfabc85..d5cf5726892 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.js +++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.js @@ -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)}/> ); } diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.js b/server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.js index 6a7e24a6f8e..82c2e7dfc9e 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.js +++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/SimpleInput.js @@ -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)}/> ); } |