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 empty grouping in Kanban (#5269)

rahulramesha889393e1d1dc
diff --git a/space/core/components/issues/issue-layouts/kanban/default.tsx b/space/core/components/issues/issue-layouts/kanban/default.tsx
index 88b20427d0..50f7b0f713 100644
--- a/space/core/components/issues/issue-layouts/kanban/default.tsx
+++ b/space/core/components/issues/issue-layouts/kanban/default.tsx
@@ -64,22 +64,15 @@ export const KanBan: React.FC<IKanBan> = observer((props) => {
if (!groupList) return null;
const visibilityGroupBy = (_list: IGroupByColumn): { showGroup: boolean; showIssues: boolean } => {
- if (subGroupBy) {
- const groupVisibility = {
- showGroup: true,
- showIssues: true,
- };
- if (!showEmptyGroup) {
- groupVisibility.showGroup = (getGroupIssueCount(_list.id, undefined, false) ?? 0) > 0;
- }
- return groupVisibility;
- } else {
- const groupVisibility = {
- showGroup: true,
- showIssues: true,
- };
- return groupVisibility;
+ const groupVisibility = {
+ showGroup: true,
+ showIssues: true,
+ };
+
+ if (!showEmptyGroup) {
+ groupVisibility.showGroup = (getGroupIssueCount(_list.id, undefined, false) ?? 0) > 0;
}
+ return groupVisibility;
};
return (