diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2023-08-30 17:14:48 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-31 20:02:56 +0000 |
commit | 071c35287467bf1d945cd0a171f713a192267f83 (patch) | |
tree | cb103b96c31f748e509d631605a0090c1eca4a52 /server | |
parent | 284f05fc0b5ae45aad6b8613c8df9f7b397c4907 (diff) | |
download | sonarqube-071c35287467bf1d945cd0a171f713a192267f83.tar.gz sonarqube-071c35287467bf1d945cd0a171f713a192267f83.zip |
SONAR-19840 Ensure project activity takes branch into account
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
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 : <ProjectActivityApp {...props} />; } -export default withComponentContext(withRouter(withMetricsContext(RedirectWrapper))); +export default withComponentContext( + withRouter(withMetricsContext(withBranchLikes(RedirectWrapper))) +); |