]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20665 Fix analysis QP event not working from the activity tab
authorAmbroise C <ambroise.christea@sonarsource.com>
Thu, 19 Oct 2023 10:07:27 +0000 (12:07 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 19 Oct 2023 20:03:26 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/activity-graph/RichQualityProfileEventInner.tsx

index a9c69032ba2656aa1bb678872e85833ffdb1cf95..52ffc8cfcb5c17653e08cda41b6e313cc6ace3b6 100644 (file)
@@ -59,6 +59,9 @@ export function RichQualityProfileEventInner({
           { 0: qualityProfileName },
         )}
         to={getProfileChangelogPath(qualityProfileName, languageKey)}
+        // Needed to make this link work from the Activity tab
+        // Because of a click handler on a parent component that is also trigerring a redirection
+        onClick={(event) => event.stopPropagation()}
       >
         {description}
       </DiscreetLink>