fix: project order by dropdown (#4037)

This commit is contained in:
Anmol Singh Bhatia 2024-03-22 18:26:44 +05:30 committed by GitHub
parent 5aed04eb41
commit baab6ce99f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,8 @@ export const ProjectOrderByDropdown: React.FC<Props> = (props) => {
key={option.key}
className="flex items-center justify-between gap-2"
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);
}}
>