Skip to content

Commit

Permalink
[fix]: epic and labels filter added
Browse files Browse the repository at this point in the history
  • Loading branch information
Anishali2 committed Mar 18, 2024
1 parent ba48e1b commit b404986
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/web/app/hooks/features/useKanban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ export function useKanban() {
.filter((task: ITeamTask) => {
return sizes.length ? sizes.includes(task.size) : true;
})
// filter labels in task.tags[{label}]
.filter((task: ITeamTask) => {
return labels.length ? labels.some((label) => task.tags.some((tag) => tag.name === label)) : true;
})
// filter epics as id now filter data
.filter((task: ITeamTask) => {
return epics.length ? epics.includes(task.id) : true;
});
Expand Down Expand Up @@ -90,7 +88,6 @@ export function useKanban() {
});
});
};
console.log('kanbanBoard-l', epics);
const addNewTask = (task: ITeamTask, status: string) => {
const updatedBoard = {
...kanbanBoard,
Expand Down

0 comments on commit b404986

Please sign in to comment.