Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: project order by dropdown (#4037)

Anmol Singh Bhatiabaab6ce99fc0
diff --git a/web/components/project/dropdowns/order-by.tsx b/web/components/project/dropdowns/order-by.tsx
index 1d262f8ac0..048513d08a 100644
--- a/web/components/project/dropdowns/order-by.tsx
+++ b/web/components/project/dropdowns/order-by.tsx
@@ -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);
}}
>