Skip to content

Commit

Permalink
Merge e377e00 into 3bb38c9
Browse files Browse the repository at this point in the history
  • Loading branch information
benshope committed Jul 10, 2018
2 parents 3bb38c9 + e377e00 commit 59631dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plot/xy-plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ class XYPlot extends React.Component {
return React.cloneElement(child, {
...dimensions,
animation,
ref: (ref) => {
if (dataProps) {
this[`series${seriesProps[index].seriesIndex}`] = ref;
}
},
...(dataProps ?
{
ref: ref => (this[`series${seriesProps[index].seriesIndex}`] = ref)
} :
{}),
...seriesProps[index],
...scaleMixins,
...child.props,
Expand Down

0 comments on commit 59631dd

Please sign in to comment.