]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9938 Hide histogram in creation date facet on issues page when there is no...
authorStas Vilchik <stas.vilchik@sonarsource.com>
Thu, 12 Oct 2017 13:05:40 +0000 (15:05 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 16 Oct 2017 09:08:02 +0000 (11:08 +0200)
server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js

index edc61cf799daf457427b886dec3b86f76110ad4a..c897fb9ac49ce4e84cc649dcc8c5bc4f211700e0 100644 (file)
@@ -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;
     }