diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-03-20 11:56:00 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-03-22 12:37:49 +0100 |
commit | 82a1cb0b4a6ea692624b290b15080fdf7d1b475c (patch) | |
tree | f0014002f03c233da8b4628440a28784fcd136f3 /server/sonar-web/src/main/js/apps/projectActivity/utils.js | |
parent | 169ffd14e1e2510b5fe6845577678b00f56ff9eb (diff) | |
download | sonarqube-82a1cb0b4a6ea692624b290b15080fdf7d1b475c.tar.gz sonarqube-82a1cb0b4a6ea692624b290b15080fdf7d1b475c.zip |
SONAR-9642 Reduce steps for selecting a custom chart (#6)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/utils.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/utils.js b/server/sonar-web/src/main/js/apps/projectActivity/utils.js index 5a8ae9aa5a1..ad2e53d848a 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/utils.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/utils.js @@ -111,7 +111,7 @@ export function generateSeries( metrics /*: Array<Metric> | { [string]: Metric } */, displayedMetrics /*: Array<string> */ ) /*: Array<Serie> */ { - if (displayedMetrics.length <= 0) { + if (displayedMetrics.length <= 0 || typeof measuresHistory === 'undefined') { return []; } return sortBy( |