Просмотр исходного кода

Better match for culumn inside tagsColumn

Adrian Lopez 9 лет назад
Родитель
Сommit
395b834a23
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/plugins/datasource/influxdb/influx_series.js

+ 1 - 1
public/app/plugins/datasource/influxdb/influx_series.js

@@ -89,7 +89,7 @@ function (_, TableModel) {
         if (column === 'sequence_number') { return; }
         if (!titleCol) { titleCol = index; }
         if (column === self.annotation.titleColumn) { titleCol = index; return; }
-        if (self.annotation.tagsColumn.includes(column)) { tagsCol.push(index); return; }
+        if (_.contains(tagsColumn.split(","), column)) { tagsCol.push(index); return; }
         if (column === self.annotation.textColumn) { textCol = index; return; }
       });