From: Stas Vilchik Date: Thu, 17 Nov 2016 09:08:58 +0000 (+0100) Subject: fix resetting of settings X-Git-Tag: 6.2-RC1~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ee2a8a407ede8eb0896090e2d1263f08e11b017d;p=sonarqube.git fix resetting of settings --- 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)}/> ); }