aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx b/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx
index ec42bcb0ce0..d2119340bc2 100644
--- a/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx
+++ b/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardPanel.tsx
@@ -19,10 +19,10 @@
*/
import classNames from 'classnames';
import * as React from 'react';
+import { getComponentSecurityHotspotsUrl } from '~sonar-aligned/helpers/urls';
import { getLeakValue } from '../../../components/measure/utils';
import { findMeasure } from '../../../helpers/measures';
-import { getComponentDrilldownUrl, getComponentSecurityHotspotsUrl } from '../../../helpers/urls';
-import { getBranchLikeQuery } from '../../../sonar-aligned/helpers/branch-like';
+import { getComponentDrilldownUrl } from '../../../helpers/urls';
import { PullRequest } from '../../../types/branch-like';
import { MetricKey } from '../../../types/metrics';
import { QualityGateStatusConditionEnhanced } from '../../../types/quality-gates';
@@ -83,9 +83,7 @@ export default function MeasuresCardPanel(props: React.PropsWithChildren<Props>)
? 'issue.type.SECURITY_HOTSPOT'
: 'issue.type.SECURITY_HOTSPOT.plural'
}
- url={getComponentSecurityHotspotsUrl(component.key, {
- ...getBranchLikeQuery(pullRequest),
- })}
+ url={getComponentSecurityHotspotsUrl(component.key, pullRequest)}
value={newSecurityHotspots}
metric={MetricKey.new_security_hotspots}
conditions={conditions}