Skip to content

Commit

Permalink
fix(line): make copy of lines data before reversing (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Jun 30, 2021
1 parent de05d72 commit 47e963a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/line/src/Lines.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import LinesItem from './LinesItem'

const Lines = ({ lines, lineGenerator, lineWidth }) => {
return lines
.slice(0)
.reverse()
.map(({ id, data, color }) => (
<LinesItem
Expand Down

0 comments on commit 47e963a

Please sign in to comment.