fix: empty groups not appearing in the kanban view (#1843)

This commit is contained in:
Aaryan Khandelwal 2023-08-11 19:17:02 +05:30 committed by GitHub
parent 5f5790ebf9
commit c6eea9c7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) ||