mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
check if there is any result from buckets
This commit is contained in:
parent
20cbb12e67
commit
b99d6c76dd
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ export default function AggTypeMetricTopProvider(Private) {
|
|||
}
|
||||
],
|
||||
getValue(agg, bucket) {
|
||||
if (!bucket[agg.id].hits.hits.length) {
|
||||
return;
|
||||
}
|
||||
return bucket[agg.id].hits.hits[0].fields[agg.params.field.name][0];
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue