]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22728 Fix click on the bubble for application
authorViktor Vorona <viktor.vorona@sonarsource.com>
Fri, 23 Aug 2024 13:59:49 +0000 (15:59 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Aug 2024 20:03:08 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx

index d9b5f1e44aa7c35b58c33a7ec18002af573e6da7..52ad7565a0387e9ea6428a2911517048ca550abe 100644 (file)
@@ -103,12 +103,14 @@ export default function MeasureOverview(props: Readonly<Props>) {
 
   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,
       });
     }
   };