ohif-319: fix asc and desc order on sort label (#1974)
This commit is contained in:
parent
58c2c00663
commit
5fbcec99f8
@ -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',
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user