Skip to content

Commit

Permalink
fix: empty groups not appearing in the kanban view (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Aug 11, 2023
1 parent 5f5790e commit c6eea9c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion apps/app/hooks/my-issues/use-my-issues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit c6eea9c

Please sign in to comment.