]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21872 Fix line of code measure in the branch overview
authorMathieu Suen <mathieu.suen@sonarsource.com>
Tue, 16 Apr 2024 13:20:18 +0000 (15:20 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 16 Apr 2024 20:02:44 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/overview/branches/BranchMetaTopBar.tsx

index d40efb4446b6e82b46c1e1c3fe7e2b11e3a68dc9..ab91aa2661c0e857ee4142da9138c932396d2dc1 100644 (file)
@@ -39,7 +39,7 @@ export default function BranchMetaTopBar({ branch, measures, component }: Readon
   const intl = useIntl();
 
   const currentPage = getCurrentPage(component, branch) as HomePage;
-  const locMeasure = findMeasure(measures, MetricKey.lines);
+  const locMeasure = findMeasure(measures, MetricKey.ncloc);
 
   const leftSection = (
     <h1 className="sw-flex sw-gap-2 sw-items-center sw-heading-md">{branch.name}</h1>