diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-12 15:05:40 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-16 11:08:02 +0200 |
commit | 62bd551bfb67b52848d3b04fcc1f6b33c9f2e263 (patch) | |
tree | 2774d63e98bc4b8b81b0a7e2309b9fe83b8e8bcd /server/sonar-web/src/main/js/apps/issues | |
parent | b1f7088e8e4a74294eee9a2e32b7fa2563864cc8 (diff) | |
download | sonarqube-62bd551bfb67b52848d3b04fcc1f6b33c9f2e263.tar.gz sonarqube-62bd551bfb67b52848d3b04fcc1f6b33c9f2e263.zip |
SONAR-9938 Hide histogram in creation date facet on issues page when there is no results
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js index edc61cf799d..c897fb9ac49 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js @@ -156,7 +156,7 @@ export default class CreationDateFacet extends React.PureComponent { const periods = Object.keys(stats); - if (periods.length < 2) { + if (periods.length < 2 || periods.every(period => !stats[period])) { return null; } |