]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9418 Show graph tooltip even if there is no graph data
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Wed, 12 Jul 2017 10:19:11 +0000 (12:19 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 13 Jul 2017 12:34:17 +0000 (14:34 +0200)
server/sonar-web/src/main/js/components/charts/AdvancedTimeline.js

index 692a2406ba24183407cea2053748906740cc230c..260e7a5050ef227074a011f82f3dccfdb4a33ed5 100644 (file)
@@ -159,10 +159,7 @@ export default class AdvancedTimeline extends React.PureComponent {
         // $FlowFixMe selectedDate can't be null there
         p => p.x.valueOf() === selectedDate.valueOf()
       );
-      if (
-        idx >= 0 &&
-        this.props.series.some(serie => serie.data[idx].y || serie.data[idx].y === 0)
-      ) {
+      if (idx >= 0) {
         return {
           selectedDate,
           selectedDateXPos: xScale(selectedDate),