]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7402 do not display leak placeholder for measures
authorStas Vilchik <vilchiks@gmail.com>
Thu, 10 Mar 2016 14:43:04 +0000 (15:43 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 10 Mar 2016 14:43:47 +0000 (15:43 +0100)
server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js

index f70f0afd2032a5bc82648546f76f62b16255bb28..44df2b51b129f3271a136a4eb5111ba7835f66a9 100644 (file)
@@ -65,13 +65,11 @@ export default function AllMeasuresDomain ({ domain, component, displayLeakHeade
                         </span>
                     )}
                   </div>
-                  {hasLeak && (
+                  {hasLeak && measure.leak != null && (
                       <div className="domain-measures-value domain-measures-leak">
-                        {measure.leak != null && (
-                            <span>
+                        <span>
                           {formatLeak(measure.leak, measure.metric)}
                         </span>
-                        )}
                       </div>
                   )}
                 </Link>