aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
index 4f74bc8ede3..54e36c96443 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx
@@ -100,9 +100,7 @@ export default function SourceViewerHeader(props: Readonly<Props>) {
const measure = componentMeasures.find(
(m) => m.metric === (areCCTMeasuresComputed ? metric : deprecatedMetric),
);
- const measureValue = areCCTMeasuresComputed
- ? JSON.parse(measure?.value ?? 'null').total
- : (measure?.value ?? 0);
+ const measureValue = measure?.value ?? 0;
const linkUrl = getComponentIssuesUrl(project, {
...getBranchLikeQuery(branchLike),