diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactMeasureCard.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactMeasureCard.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactMeasureCard.tsx b/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactMeasureCard.tsx index 420f7e65e9e..17800780d9b 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactMeasureCard.tsx +++ b/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactMeasureCard.tsx @@ -65,9 +65,6 @@ export function SoftwareImpactMeasureCard(props: Readonly<SoftwareImpactBreakdow (m) => m.metric.key === SOFTWARE_QUALITIES_METRIC_KEYS_MAP[softwareQuality].deprecatedMetric, ); - // Find rating measure - const ratingMeasure = measures.find((m) => m.metric.key === ratingMetricKey); - const count = formatMeasure(measure?.total ?? alternativeMeasure?.value, MetricType.ShortInteger); const totalLinkHref = getComponentIssuesUrl(component.key, { @@ -140,7 +137,8 @@ export function SoftwareImpactMeasureCard(props: Readonly<SoftwareImpactBreakdow <div className="sw-flex-grow sw-flex sw-justify-end"> <SoftwareImpactMeasureRating softwareQuality={softwareQuality} - value={ratingMeasure?.value} + componentKey={component.key} + ratingMetricKey={ratingMetricKey} /> </div> </div> |