Skip to content

Commit

Permalink
fix(line): make copy of lines data before reversing
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Jun 30, 2021
1 parent 9c00efa commit efd3c39
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 efd3c39

Please sign in to comment.