diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-07 12:35:50 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-13 14:34:17 +0200 |
commit | c5cb4a810e192fc2299031ed2fc04b57c522b793 (patch) | |
tree | f5714e0ae67bcd8168b81c35e178fdfc16ae3013 /server/sonar-web/src/main/js/apps | |
parent | f6c60617b20ca2c301b4b2a94cb063d12dbbc758 (diff) | |
download | sonarqube-c5cb4a810e192fc2299031ed2fc04b57c522b793.tar.gz sonarqube-c5cb4a810e192fc2299031ed2fc04b57c522b793.zip |
SONAR-9403 Filter out leak measures from the available measures of the project activity custom graph
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js | 3 |
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) { |