diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-08-17 21:39:59 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 11:34:36 +0200 |
commit | cff416d7f9910c258bc8d7175c08afff96a9eb2a (patch) | |
tree | 78500908a2afde31b28ef938d4d61609d448f279 /server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js | |
parent | 139467cf51932ba232190f363ad864e60eb3fd4d (diff) | |
download | sonarqube-cff416d7f9910c258bc8d7175c08afff96a9eb2a.tar.gz sonarqube-cff416d7f9910c258bc8d7175c08afff96a9eb2a.zip |
SONAR-9702 Build UI for short-lived branches (#2371)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js b/server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js index f3d91451c47..f823961bb6f 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/AppContainer.js @@ -22,12 +22,7 @@ import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import App from './App'; import throwGlobalError from '../../../app/utils/throwGlobalError'; -import { - getComponent, - getCurrentUser, - getMetrics, - getMetricsKey -} from '../../../store/rootReducer'; +import { getCurrentUser, getMetrics, getMetricsKey } from '../../../store/rootReducer'; import { fetchMetrics } from '../../../store/rootActions'; import { getMeasuresAndMeta } from '../../../api/measures'; import { getLeakPeriod } from '../../../helpers/periods'; @@ -35,8 +30,7 @@ import { enhanceMeasure } from '../../../components/measure/utils'; /*:: import type { Component, Period } from '../types'; */ /*:: import type { Measure, MeasureEnhanced } from '../../../components/measure/types'; */ -const mapStateToProps = (state, ownProps) => ({ - component: getComponent(state, ownProps.location.query.id), +const mapStateToProps = state => ({ currentUser: getCurrentUser(state), metrics: getMetrics(state), metricsKey: getMetricsKey(state) |