Skip to content

Commit

Permalink
[visualize spy] Pull index title instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Aug 2, 2017
1 parent f78bb5d commit 7d4fc02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core_plugins/spy_modes/public/req_resp_stats_spy_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const linkReqRespStats = function ($scope) {
if (resp && resp.hits) stats.push(['Hits', resp.hits.total]);

if (req.fetchParams) {
if (req.fetchParams.index) stats.push(['Index', req.fetchParams.index]);
if (req.fetchParams.type) stats.push(['Type', req.fetchParams.type]);
if (req.fetchParams.id) stats.push(['Id', req.fetchParams.id]);
if (req.fetchParams.index.title) stats.push(['Index', req.fetchParams.index.title]);
if (req.fetchParams.index.type) stats.push(['Type', req.fetchParams.index.type]);
if (req.fetchParams.index.id) stats.push(['Id', req.fetchParams.index.id]);
}
});
};
Expand Down

0 comments on commit 7d4fc02

Please sign in to comment.