]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7402 do not diplay leak value for RATING measures
authorStas Vilchik <vilchiks@gmail.com>
Fri, 25 Mar 2016 14:53:32 +0000 (15:53 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 25 Mar 2016 14:53:39 +0000 (15:53 +0100)
server/sonar-web/src/main/js/apps/component-measures/home/MeasuresList.js

index 4bf7833968d272521b539a1f040040e4aeac2fb3..04f1415927e90c6134bcffd2a89916c98bfb005a 100644 (file)
@@ -41,7 +41,7 @@ const MeasuresList = ({ measures, hasLeak, component }) => {
                       </span>
                   )}
                 </div>
-                {hasLeak && measure.leak != null && (
+                {hasLeak && measure.leak != null && measure.metric.type !== 'RATING' && (
                     <div className="domain-measures-value domain-measures-leak">
                         <span id={`measure-${measure.metric.key}-leak`}>
                           {formatLeak(measure.leak, measure.metric)}