Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benshope committed Jul 10, 2018
1 parent f2547ec commit e377e00
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/plot/xy-plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,11 @@ class XYPlot extends React.Component {
return React.cloneElement(child, {
...dimensions,
animation,
...(dataProps
? {
ref: ref =>
(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 e377e00

Please sign in to comment.