aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js b/server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js
index 9d1b3ff6d1a..f055ef7e68b 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/TreeMapView.js
@@ -26,7 +26,6 @@ import ColorGradientLegend from '../../../components/charts/ColorGradientLegend'
import EmptyResult from './EmptyResult';
import QualifierIcon from '../../../components/icons-components/QualifierIcon';
import TreeMap from '../../../components/charts/TreeMap';
-import { getBranchName } from '../../../helpers/branches';
import { translate, translateWithParameters, getLocalizedMetricName } from '../../../helpers/l10n';
import { formatMeasure, isDiffMetric } from '../../../helpers/measures';
import { getComponentUrl } from '../../../helpers/urls';
@@ -35,7 +34,7 @@ import { getComponentUrl } from '../../../helpers/urls';
/*:: import type { TreeMapItem } from '../../../components/charts/TreeMap'; */
/*:: type Props = {|
- branch: {},
+ branch?: string,
components: Array<ComponentEnhanced>,
handleSelect: string => void,
metric: Metric
@@ -95,7 +94,7 @@ export default class TreeMapView extends React.PureComponent {
sizeValue
),
label: component.name,
- link: getComponentUrl(component.refKey || component.key, getBranchName(branch))
+ link: getComponentUrl(component.refKey || component.key, branch)
};
})
.filter(Boolean);