Skip to content

Commit

Permalink
fix: Table sort (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
plind-dm authored Feb 9, 2021
1 parent 2bdf687 commit 67b97b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Table/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const createReducer = <T extends DataType>() => (state: TableState<T>, action: T
...column,
sorted: {
on: true,
asc: false,
asc: column.sorted.asc,
},
};
}
Expand Down Expand Up @@ -319,6 +319,7 @@ export const useTable = <T extends DataType>(
sort: column.sort,
sorted: {
on: false,
asc: false,
},
};
}),
Expand Down

0 comments on commit 67b97b4

Please sign in to comment.