]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19518 Fix measures page's incorrect coverage numbers
author7PH <benjamin.raymond@sonarsource.com>
Mon, 12 Jun 2023 12:54:28 +0000 (14:54 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 13 Jun 2023 20:03:36 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/component-measures/drilldown/ComponentsList.tsx

index d67a32ddf3dc0e4e77f9b2aee0d21d7191f3ace1..797671d0793ec6467bef94349c9217a49f4d12ac 100644 (file)
@@ -80,7 +80,12 @@ export default function ComponentsList({ components, metric, metrics, ...props }
           <MeasureCell component={component} metric={metric} />
 
           {otherMetrics.map((metric) => (
-            <MeasureCell key={metric.key} component={component} metric={metric} />
+            <MeasureCell
+              key={metric.key}
+              component={component}
+              measure={component.measures.find((measure) => measure.metric.key === metric.key)}
+              metric={metric}
+            />
           ))}
         </TableRowInteractive>
       ))}