Skip to content

Commit

Permalink
fix empty grouping in Kanban
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulramesha committed Jul 30, 2024
1 parent 518327e commit 9c55e61
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions space/core/components/issues/issue-layouts/kanban/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 9c55e61

Please sign in to comment.