瀏覽代碼

Merge pull request #13556 from grafana/influxdb-annotation-fix

fix for influxdb annotation issue that caused text to be shown twice
Torkel Ödegaard 7 年之前
父節點
當前提交
ed349075a0
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      public/app/plugins/datasource/influxdb/influx_series.ts

+ 4 - 3
public/app/plugins/datasource/influxdb/influx_series.ts

@@ -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;
@@ -114,6 +111,10 @@ export default class InfluxSeries {
           textCol = index;
           return;
         }
+        // legacy case
+        if (!titleCol && textCol !== index) {
+          titleCol = index;
+        }
       });
 
       _.each(series.values, value => {