mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
[elasticsearch] Allow nested fields for annotation source (#10936)
This commit is contained in:
parent
9c36ee22a8
commit
710bb70746
@ -166,7 +166,7 @@ export class ElasticDatasource {
|
||||
|
||||
for (var i = 0; i < hits.length; i++) {
|
||||
var source = hits[i]._source;
|
||||
var time = source[timeField];
|
||||
var time = getFieldFromSource(source, timeField);
|
||||
if (typeof hits[i].fields !== 'undefined') {
|
||||
var fields = hits[i].fields;
|
||||
if (_.isString(fields[timeField]) || _.isNumber(fields[timeField])) {
|
||||
|
Loading…
Reference in New Issue
Block a user