diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-12 12:19:11 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-13 14:34:17 +0200 |
commit | a3492adb531a984e9b8f5879bb96bfda27b89559 (patch) | |
tree | e9da0489a6e5539a2276e2815dbafd09309d95c7 /server | |
parent | 294ce018e68884e899f35aba07d41c7fe2aa0e0b (diff) | |
download | sonarqube-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.js | 5 |
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), |