From 071c35287467bf1d945cd0a171f713a192267f83 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Wed, 30 Aug 2023 17:14:48 +0200 Subject: [PATCH] SONAR-19840 Ensure project activity takes branch into account --- .../apps/projectActivity/components/ProjectActivityApp.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx index d4b7ff0af5c..728be1233e2 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx @@ -40,6 +40,7 @@ import { Location, Router, withRouter } from '../../../components/hoc/withRouter import { getBranchLikeQuery } from '../../../helpers/branch-like'; import { parseDate } from '../../../helpers/dates'; import { serializeStringArray } from '../../../helpers/query'; +import { withBranchLikes } from '../../../queries/branch'; import { BranchLike } from '../../../types/branch-like'; import { ComponentQualifier, isPortfolioLike } from '../../../types/component'; import { MetricKey } from '../../../types/metrics'; @@ -414,4 +415,6 @@ function RedirectWrapper(props: Props) { return shouldRedirect ? null : ; } -export default withComponentContext(withRouter(withMetricsContext(RedirectWrapper))); +export default withComponentContext( + withRouter(withMetricsContext(withBranchLikes(RedirectWrapper))) +); -- 2.39.5