aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js3
1 files changed, 2 insertions, 1 deletions
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 d0a435a97ce..8d8b861fd24 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
@@ -21,6 +21,7 @@
import React from 'react';
import Modal from 'react-modal';
import Select from 'react-select';
+import { isDiffMetric } from '../../../../helpers/measures';
import { translate } from '../../../../helpers/l10n';
import type { Metric } from '../../types';
@@ -55,7 +56,7 @@ export default class AddGraphMetric extends React.PureComponent {
const selectedType = this.getMetricsType();
return this.props.metrics
.filter(metric => {
- if (metric.hidden) {
+ if (metric.hidden || isDiffMetric(metric.key)) {
return false;
}
if (selectedType) {