fix empty grouping in Kanban (#5269)
This commit is contained in:
parent
6fa45d8723
commit
889393e1d1
1 changed files with 8 additions and 15 deletions
|
|
@ -64,22 +64,15 @@ export const KanBan: React.FC<IKanBan> = observer((props) => {
|
||||||
if (!groupList) return null;
|
if (!groupList) return null;
|
||||||
|
|
||||||
const visibilityGroupBy = (_list: IGroupByColumn): { showGroup: boolean; showIssues: boolean } => {
|
const visibilityGroupBy = (_list: IGroupByColumn): { showGroup: boolean; showIssues: boolean } => {
|
||||||
if (subGroupBy) {
|
const groupVisibility = {
|
||||||
const groupVisibility = {
|
showGroup: true,
|
||||||
showGroup: true,
|
showIssues: true,
|
||||||
showIssues: true,
|
};
|
||||||
};
|
|
||||||
if (!showEmptyGroup) {
|
if (!showEmptyGroup) {
|
||||||
groupVisibility.showGroup = (getGroupIssueCount(_list.id, undefined, false) ?? 0) > 0;
|
groupVisibility.showGroup = (getGroupIssueCount(_list.id, undefined, false) ?? 0) > 0;
|
||||||
}
|
|
||||||
return groupVisibility;
|
|
||||||
} else {
|
|
||||||
const groupVisibility = {
|
|
||||||
showGroup: true,
|
|
||||||
showIssues: true,
|
|
||||||
};
|
|
||||||
return groupVisibility;
|
|
||||||
}
|
}
|
||||||
|
return groupVisibility;
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue