From b40498690c5d0a0b7c785480644ba0109c674072 Mon Sep 17 00:00:00 2001 From: anishali2 Date: Mon, 18 Mar 2024 22:33:43 +0500 Subject: [PATCH] [fix]: epic and labels filter added --- apps/web/app/hooks/features/useKanban.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/web/app/hooks/features/useKanban.ts b/apps/web/app/hooks/features/useKanban.ts index 679f39319..dfa0b797f 100644 --- a/apps/web/app/hooks/features/useKanban.ts +++ b/apps/web/app/hooks/features/useKanban.ts @@ -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; }); @@ -90,7 +88,6 @@ export function useKanban() { }); }); }; - console.log('kanbanBoard-l', epics); const addNewTask = (task: ITeamTask, status: string) => { const updatedBoard = { ...kanbanBoard,