ohif-319: fix asc and desc order on sort label (#1974)

This commit is contained in:
Igor Octaviano authored and GitHub committed 2020-08-07 09:03:30 +02:00
1 parent 58c2c00663
commit 5fbcec99f8
2 files changed
+3 -3

No files matched your search

@@ -21,7 +21,7 @@ const InputGroup = ({
const handleFilterLabelClick = name => {
if (isSortingEnable) {
let _sortDirection = 'ascending';
let _sortDirection = 'descending';
if (sortBy === name) {
if (sortDirection === 'ascending') {
_sortDirection = 'descending';
@@ -8,8 +8,8 @@ const baseLabelClassName =
'flex flex-col flex-1 text-white text-lg pl-1 select-none';
const spanClassName = 'flex flex-row items-center cursor-pointer focus:outline-none';
const sortIconMap = {
ascending: 'sorting-active-up',
descending: 'sorting-active-down',
descending: 'sorting-active-up',
ascending: 'sorting-active-down',
none: 'sorting',
};