From ee2a8a407ede8eb0896090e2d1263f08e11b017d Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 17 Nov 2016 10:08:58 +0100 Subject: [PATCH] fix resetting of settings --- .../src/main/js/apps/settings/components/inputs/InputForText.js | 2 +- .../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)}/> ); } -- 2.39.5