Skip to content

Commit

Permalink
[visualize spy] Check for existence of index before pulling params
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Aug 2, 2017
1 parent 7d4fc02 commit 7712c82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const linkReqRespStats = function ($scope) {
if (req && req.ms != null) stats.push(['Request Duration', req.ms + 'ms']);
if (resp && resp.hits) stats.push(['Hits', resp.hits.total]);

if (req.fetchParams) {
if (req.fetchParams && req.fetchParams.index) {
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 7712c82

Please sign in to comment.