aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-07-12 12:19:11 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-07-13 14:34:17 +0200
commita3492adb531a984e9b8f5879bb96bfda27b89559 (patch)
treee9da0489a6e5539a2276e2815dbafd09309d95c7 /server
parent294ce018e68884e899f35aba07d41c7fe2aa0e0b (diff)
downloadsonarqube-a3492adb531a984e9b8f5879bb96bfda27b89559.tar.gz
sonarqube-a3492adb531a984e9b8f5879bb96bfda27b89559.zip
SONAR-9418 Show graph tooltip even if there is no graph data
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/components/charts/AdvancedTimeline.js5
1 files changed, 1 insertions, 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),