aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-10-27 17:19:19 +0200
committersonartech <sonartech@sonarsource.com>2022-10-31 20:03:00 +0000
commit0c8298d8c2501b22f835137794a34f794406b225 (patch)
tree258b3f8eb5c50b8e26d68bd452064a9c85812535
parentab01226dd12e95428d40fadaa83d64e22b9d5fd9 (diff)
downloadsonarqube-0c8298d8c2501b22f835137794a34f794406b225.tar.gz
sonarqube-0c8298d8c2501b22f835137794a34f794406b225.zip
SONAR-17533: FIxing random input toggle issue in settings page
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx b/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx
index 23bdb1d0edd..4233c6d7dae 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx
@@ -50,7 +50,7 @@ export default class InputForSecured extends React.PureComponent<Props, State> {
* - the value changes from outside the input (i.e. store update/reset/cancel)
*/
if (
- (prevProps.hasValueChanged || this.props.setting !== prevProps.setting) &&
+ (prevProps.hasValueChanged || this.props.setting.value !== prevProps.setting.value) &&
!this.props.hasValueChanged
) {
this.setState({ changing: !this.props.setting.hasValue });