File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1634,6 +1634,7 @@ var SparklinesCurve = function (_React$Component) {
1634
1634
var prev = void 0 ;
1635
1635
var linePoints = points . length > 0 ? [ points [ 0 ] . x , points [ 0 ] . y ] : [ ] ;
1636
1636
for ( var i = 1 ; i < linePoints . length ; ++ i ) {
1637
+ var p = linePoints [ i ] ;
1637
1638
var _prev = linePoints [ i - 1 ] ;
1638
1639
var len = ( p . x - _prev . x ) * divisor ;
1639
1640
linePoints . push ( "C" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @jrwats/react-sparklines" ,
3
- "version" : " 1.7.5 " ,
3
+ "version" : " 1.7.6 " ,
4
4
"description" : " Hacked up / forked Sparklines" ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default class SparklinesCurve extends React.Component {
17
17
let prev ;
18
18
let linePoints = points . length > 0 ? [ points [ 0 ] . x , points [ 0 ] . y ] : [ ] ;
19
19
for ( let i = 1 ; i < linePoints . length ; ++ i ) {
20
+ const p = linePoints [ i ] ;
20
21
const prev = linePoints [ i - 1 ] ;
21
22
const len = ( p . x - prev . x ) * divisor ;
22
23
linePoints . push ( "C" ,
You can’t perform that action at this time.
0 commit comments