Skip to content

Commit

Permalink
Merge pull request grafana#13556 from grafana/influxdb-annotation-fix
Browse files Browse the repository at this point in the history
fix for influxdb annotation issue that caused text to be shown twice
  • Loading branch information
torkelo authored Oct 8, 2018
2 parents 07eba60 + 67f5bb2 commit ed34907
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/app/plugins/datasource/influxdb/influx_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ export default class InfluxSeries {
if (column === 'sequence_number') {
return;
}
if (!titleCol) {
titleCol = index;
}
if (column === this.annotation.titleColumn) {
titleCol = index;
return;
Expand All @@ -114,6 +111,10 @@ export default class InfluxSeries {
textCol = index;
return;
}
// legacy case
if (!titleCol && textCol !== index) {
titleCol = index;
}
});

_.each(series.values, value => {
Expand Down

0 comments on commit ed34907

Please sign in to comment.