From a3492adb531a984e9b8f5879bb96bfda27b89559 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Wed, 12 Jul 2017 12:19:11 +0200 Subject: [PATCH] SONAR-9418 Show graph tooltip even if there is no graph data --- .../src/main/js/components/charts/AdvancedTimeline.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/js/components/charts/AdvancedTimeline.js b/server/sonar-web/src/main/js/components/charts/AdvancedTimeline.js index 692a2406ba2..260e7a5050e 100644 --- a/server/sonar-web/src/main/js/components/charts/AdvancedTimeline.js +++ b/server/sonar-web/src/main/js/components/charts/AdvancedTimeline.js @@ -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), -- 2.39.5