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) {
16341634 var prev = void 0 ;
16351635 var linePoints = points . length > 0 ? [ points [ 0 ] . x , points [ 0 ] . y ] : [ ] ;
16361636 for ( var i = 1 ; i < linePoints . length ; ++ i ) {
1637+ var p = linePoints [ i ] ;
16371638 var _prev = linePoints [ i - 1 ] ;
16381639 var len = ( p . x - _prev . x ) * divisor ;
16391640 linePoints . push ( "C" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @jrwats/react-sparklines" ,
3- "version" : " 1.7.5 " ,
3+ "version" : " 1.7.6 " ,
44 "description" : " Hacked up / forked Sparklines" ,
55 "main" : " build/index.js" ,
66 "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 {
1717 let prev ;
1818 let linePoints = points . length > 0 ? [ points [ 0 ] . x , points [ 0 ] . y ] : [ ] ;
1919 for ( let i = 1 ; i < linePoints . length ; ++ i ) {
20+ const p = linePoints [ i ] ;
2021 const prev = linePoints [ i - 1 ] ;
2122 const len = ( p . x - prev . x ) * divisor ;
2223 linePoints . push ( "C" ,
You can’t perform that action at this time.
0 commit comments