Skip to content

Commit

Permalink
Fixes elastic#11763 - Fixes error in Percentile for Time Series Visua…
Browse files Browse the repository at this point in the history
…l Builder (elastic#11772)
  • Loading branch information
simianhacker authored and snide committed May 30, 2017
1 parent 4e7ca80 commit 3737349
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default (row, metric) => {

if (metric.type === 'percentile_rank') {
const percentileRankKey = `${metric.value}`;
return row[metric.id] && row[metric.id].values[percentileRankKey];
return row[metric.id] && row[metric.id].values && row[metric.id].values[percentileRankKey];
}

// Derivatives
Expand Down

0 comments on commit 3737349

Please sign in to comment.