From: Philippe Perrin Date: Wed, 30 Aug 2023 15:14:48 +0000 (+0200) Subject: SONAR-19840 Ensure project activity takes branch into account X-Git-Tag: 10.2.0.77647~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=071c35287467bf1d945cd0a171f713a192267f83;p=sonarqube.git SONAR-19840 Ensure project activity takes branch into account --- 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))) +);