diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/portfolio/components/Activity.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/portfolio/components/Activity.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/portfolio/components/Activity.tsx b/server/sonar-web/src/main/js/apps/portfolio/components/Activity.tsx index ddba951e313..01d14bb1807 100644 --- a/server/sonar-web/src/main/js/apps/portfolio/components/Activity.tsx +++ b/server/sonar-web/src/main/js/apps/portfolio/components/Activity.tsx @@ -60,13 +60,13 @@ export default class Activity extends React.PureComponent<Props> { fetchHistory = () => { const { component } = this.props; - let graphMetrics = getDisplayedHistoryMetrics(getGraph(), getCustomGraph()); + let graphMetrics: string[] = getDisplayedHistoryMetrics(getGraph(), getCustomGraph()); if (!graphMetrics || graphMetrics.length <= 0) { graphMetrics = getDisplayedHistoryMetrics(DEFAULT_GRAPH, []); } this.setState({ loading: true }); - return getAllTimeMachineData(component, graphMetrics).then( + return getAllTimeMachineData({ component, metrics: graphMetrics.join() }).then( timeMachine => { if (this.mounted) { const history: History = {}; |