Skip to content

Commit

Permalink
Update web/ui/src/features/component/TableHead.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: William Dumont <[email protected]>
  • Loading branch information
hainenber and wildum committed Nov 2, 2023
1 parent cc95e93 commit 3aa815e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ui/src/features/component/TableHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TableHead = ({ headers, handleSorting }: Props) => {
// User clicks on the new header, use default ASC sort order
let sortOrder = SortOrder.ASC;

// User clicks again on the header we toggled the sort order previously
// User clicks again on the header, we toggle the previous sort order
if (header === sortField) {
sortOrder = order === SortOrder.ASC ? SortOrder.DESC : SortOrder.ASC;
}
Expand Down

0 comments on commit 3aa815e

Please sign in to comment.