From b7595e2634b4138d1e9a20620734247a13cf4d09 Mon Sep 17 00:00:00 2001 From: Viktor Vorona Date: Fri, 23 Aug 2024 15:59:49 +0200 Subject: [PATCH] SONAR-22728 Fix click on the bubble for application --- .../component-measures/components/MeasureOverview.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx index d9b5f1e44aa..52ad7565a03 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx @@ -103,12 +103,14 @@ export default function MeasureOverview(props: Readonly) { const loading = loadingComponent || loadingBubbles; - const updateSelected = (component: ComponentMeasureIntern) => { + const updateSelected = (selectedComponent: ComponentMeasureIntern) => { if (component && isView(component.qualifier)) { - router.push(getProjectUrl(component.refKey ?? component.key, component.branch)); + router.push( + getProjectUrl(selectedComponent.refKey ?? selectedComponent.key, selectedComponent.branch), + ); } else { updateQuery({ - selected: component.key !== rootComponent.key ? component.key : undefined, + selected: selectedComponent.key !== rootComponent.key ? selectedComponent.key : undefined, }); } }; -- 2.39.5