From baab6ce99fc02068b72942d8342c994004e6c48c Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 22 Mar 2024 18:26:44 +0530 Subject: [PATCH] fix: project order by dropdown (#4037) --- web/components/project/dropdowns/order-by.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/project/dropdowns/order-by.tsx b/web/components/project/dropdowns/order-by.tsx index 1d262f8ac..048513d08 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) => { 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); }} >