forked from github/plane
fix: project order by dropdown (#4037)
This commit is contained in:
parent
5aed04eb41
commit
baab6ce99f
@ -40,7 +40,8 @@ export const ProjectOrderByDropdown: React.FC<Props> = (props) => {
|
|||||||
key={option.key}
|
key={option.key}
|
||||||
className="flex items-center justify-between gap-2"
|
className="flex items-center justify-between gap-2"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (isDescending) onChange(`-${option.key}` as TProjectOrderByOptions);
|
if (isDescending)
|
||||||
|
onChange(option.key == "sort_order" ? option.key : (`-${option.key}` as TProjectOrderByOptions));
|
||||||
else onChange(option.key);
|
else onChange(option.key);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user