From: Stas Vilchik Date: Wed, 10 Jan 2018 15:55:17 +0000 (+0100) Subject: SONAR-10255 Add possibility to clear fields in Quality Gate configuration X-Git-Tag: 7.0-RC1~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ca26d5fc282f3af63518bf761e062a4d638842b;p=sonarqube.git SONAR-10255 Add possibility to clear fields in Quality Gate configuration --- diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ThresholdInput.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ThresholdInput.tsx index cf60765a6f3..bdaf274b749 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/ThresholdInput.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ThresholdInput.tsx @@ -33,7 +33,7 @@ export default class ThresholdInput extends React.PureComponent { this.props.onChange(e.currentTarget.value); }; - handleSelectChange = (option: any) => { + handleSelectChange = (option: { value: string } | null) => { if (option) { this.props.onChange(option.value); } else { @@ -54,6 +54,7 @@ export default class ThresholdInput extends React.PureComponent { return (