From a5ca5f81b5cd575d464ef18c5696ec7e8bf9ea4b Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 28 Oct 2016 10:03:25 +0200 Subject: [PATCH] SONAR-8119 fix period selection --- .../src/main/js/apps/quality-gates/components/Condition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.js b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.js index 36f0dc3e73d..ae7c34aa548 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.js +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.js @@ -176,7 +176,7 @@ export default class Condition extends Component { const isRating = metric.type === 'RATING'; const isLeakSelected = !!this.state.period; - if (isRating || (isDiffMetric && !edit)) { + if (isRating || isDiffMetric || !edit) { return this.renderPeriodValue(); } -- 2.39.5