Skip to content

Commit

Permalink
docs(Table): fix sort issue in TableExampleSortable (#4097)
Browse files Browse the repository at this point in the history
Co-authored-by: Pechlivanis Dimitrios <[email protected]>
Co-authored-by: Oleksandr Fediashov <[email protected]>
  • Loading branch information
3 people authored Nov 24, 2020
1 parent 1c8b20b commit b8ce488
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function exampleReducer(state, action) {
if (state.column === action.column) {
return {
...state,
data: state.data.reverse(),
data: state.data.slice().reverse(),
direction:
state.direction === 'ascending' ? 'descending' : 'ascending',
}
Expand Down

0 comments on commit b8ce488

Please sign in to comment.