Skip to content

Commit b8ce488

Browse files
Mental1993Pechlivanis Dimitrioslayershifter
authored
docs(Table): fix sort issue in TableExampleSortable (#4097)
Co-authored-by: Pechlivanis Dimitrios <[email protected]> Co-authored-by: Oleksandr Fediashov <[email protected]>
1 parent 1c8b20b commit b8ce488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/examples/collections/Table/Variations/TableExampleSortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function exampleReducer(state, action) {
1515
if (state.column === action.column) {
1616
return {
1717
...state,
18-
data: state.data.reverse(),
18+
data: state.data.slice().reverse(),
1919
direction:
2020
state.direction === 'ascending' ? 'descending' : 'ascending',
2121
}

0 commit comments

Comments
 (0)