From 5ca26d5fc282f3af63518bf761e062a4d638842b Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 10 Jan 2018 16:55:17 +0100 Subject: [PATCH] SONAR-10255 Add possibility to clear fields in Quality Gate configuration --- .../main/js/apps/quality-gates/components/ThresholdInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (