Commit 67f5bb2c by Torkel Ödegaard

fix for influxdb annotation issue that caused text to be shown twice, fixes #13553

parent 07eba60e
...@@ -99,9 +99,6 @@ export default class InfluxSeries { ...@@ -99,9 +99,6 @@ export default class InfluxSeries {
if (column === 'sequence_number') { if (column === 'sequence_number') {
return; return;
} }
if (!titleCol) {
titleCol = index;
}
if (column === this.annotation.titleColumn) { if (column === this.annotation.titleColumn) {
titleCol = index; titleCol = index;
return; return;
...@@ -114,6 +111,10 @@ export default class InfluxSeries { ...@@ -114,6 +111,10 @@ export default class InfluxSeries {
textCol = index; textCol = index;
return; return;
} }
// legacy case
if (!titleCol && textCol !== index) {
titleCol = index;
}
}); });
_.each(series.values, value => { _.each(series.values, value => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment