From 83a1a2b70b11cd2ccee93216851fadc49f09111d Mon Sep 17 00:00:00 2001 From: Grégoire Aubert Date: Thu, 21 Sep 2017 10:59:17 +0200 Subject: SONAR-9832 Filter out DATA and DISTRIB type metrics in custom graphs --- .../src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js | 1 + 1 file changed, 1 insertion(+) (limited to 'server/sonar-web/src') diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js index c3ff24b0732..ece4bdad6d7 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js @@ -60,6 +60,7 @@ export default class AddGraphMetric extends React.PureComponent { if ( metric.hidden || isDiffMetric(metric.key) || + ['DATA', 'DISTRIB'].includes(metric.type) || this.props.selectedMetrics.includes(metric.key) ) { return false; -- cgit v1.2.3