Selaa lähdekoodia

Fixed default '@timestamp' time field for elasticsearch annotations, Fixes #1444

Torkel Ödegaard 11 vuotta sitten
vanhempi
commit
2de6f3434c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/app/features/elasticsearch/datasource.js

+ 1 - 1
src/app/features/elasticsearch/datasource.js

@@ -68,7 +68,7 @@ function (angular, _, config, kbn, moment) {
       var titleField = annotation.titleField || 'desc';
       var titleField = annotation.titleField || 'desc';
       var textField = annotation.textField || null;
       var textField = annotation.textField || null;
 
 
-      range[annotation.timeField]= {
+      range[timeField]= {
         from: rangeUnparsed.from,
         from: rangeUnparsed.from,
         to: rangeUnparsed.to,
         to: rangeUnparsed.to,
       };
       };