Skip to content

Commit

Permalink
feat(legend/series): compare highlightedLegendItemIndex with null
Browse files Browse the repository at this point in the history
addresses elastic#24
  • Loading branch information
emmacunningham committed Feb 8, 2019
1 parent a063717 commit 94d6508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/react_canvas/reactive_chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Chart extends React.Component<ReactiveChartProps, ReactiveChartState> {
if (!geometries) {
return;
}
const highlightedLegendItem = highlightedLegendItemIndex ? legendItems[highlightedLegendItemIndex] : null;
const highlightedLegendItem = highlightedLegendItemIndex != null ? legendItems[highlightedLegendItemIndex] : null;

return (
<BarGeometries
Expand Down

0 comments on commit 94d6508

Please sign in to comment.