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: module filter and order by (#4040)

Anmol Singh Bhatiacdf86391f007
diff --git a/web/components/modules/modules-list-view.tsx b/web/components/modules/modules-list-view.tsx
index ce8ce4e65f..b0ff676092 100644
--- a/web/components/modules/modules-list-view.tsx
+++ b/web/components/modules/modules-list-view.tsx
@@ -38,7 +38,7 @@ export const ModulesListView: React.FC = observer(() => {
</>
);
- if (totalFilters > 0 || searchQuery.trim() !== "")
+ if (totalFilters > 0 && filteredModuleIds.length === 0)
return (
<div className="h-full w-full grid place-items-center">
<div className="text-center">
diff --git a/web/helpers/module.helper.ts b/web/helpers/module.helper.ts
index 1a01915f29..f5cbfe08ab 100644
--- a/web/helpers/module.helper.ts
+++ b/web/helpers/module.helper.ts
@@ -22,7 +22,7 @@ export const orderModules = (modules: IModule[], orderByKey: TModuleOrderByOptio
(m) => {
let progress = (m.completed_issues + m.cancelled_issues) / m.total_issues;
if (isNaN(progress)) progress = 0;
- return orderByKey === "progress" ? progress : !progress;
+ return orderByKey === "progress" ? progress : -progress;
},
"name",
]);