Skip to content

Commit

Permalink
return inner kibana object
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane committed Dec 27, 2021
1 parent 5166b87 commit 7ee38bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/server/lib/kibana/get_kibanas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function getKibanas(

const buildKibanaDetails = (hit: ElasticsearchResponseHit): KibanaDetails => {
const source = hit._source;
if (source.kibana_stats) return source.kibana_stats as KibanaDetails;
if (source.kibana_stats) return source.kibana_stats.kibana as KibanaDetails;

return {
name: source.kibana?.stats?.name,
Expand Down

0 comments on commit 7ee38bb

Please sign in to comment.