Skip to content

Commit

Permalink
Fix some of the failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Dec 22, 2018
1 parent 37d4044 commit 384a7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/agg_response/point_series/_get_series.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getSeries(rows, chart) {
const multiY = Array.isArray(aspects.y);
const yScale = chart.yScale;
const partGetPoint = _.partial(getPoint, aspects.x, aspects.series, yScale);
const orderedXKeys = _.uniq(rows.map(r => r[aspects.x.i].value));
const orderedXKeys = aspects.x.i > -1 ? _.uniq(rows.map(r => r[aspects.x.i].value)) : [];
const orderedXKeysMap = orderedXKeys.reduce((acc, cur, i) => {
acc[cur] = i;
return acc;
Expand Down

0 comments on commit 384a7a8

Please sign in to comment.