forked from github/plane
fix: empty groups not appearing in the kanban view (#1843)
This commit is contained in:
parent
5f5790ebf9
commit
c6eea9c7a9
@ -52,8 +52,23 @@ const useMyIssues = (workspaceSlug: string | undefined) => {
|
||||
allIssues: myIssues,
|
||||
};
|
||||
|
||||
if (groupBy === "state_detail.group") {
|
||||
return myIssues
|
||||
? Object.assign(
|
||||
{
|
||||
backlog: [],
|
||||
unstarted: [],
|
||||
started: [],
|
||||
completed: [],
|
||||
cancelled: [],
|
||||
},
|
||||
myIssues
|
||||
)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
return myIssues;
|
||||
}, [myIssues]);
|
||||
}, [groupBy, myIssues]);
|
||||
|
||||
const isEmpty =
|
||||
Object.values(groupedIssues ?? {}).every((group) => group.length === 0) ||
|
||||
|
Loading…
Reference in New Issue
Block a user