From 3f18e2fabc0c8bdbb605bc90e01250bdd2b9e79d Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 28 May 2024 11:53:24 +0530 Subject: [PATCH] fix: profile issue kanban group collapse and expand toggle (#4612) --- .../issues/issue-layouts/kanban/base-kanban-root.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx b/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx index b8060d7cf..831c3119e 100644 --- a/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx +++ b/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx @@ -182,14 +182,14 @@ export const BaseKanBanRoot: React.FC = observer((props: IBas }; const handleKanbanFilters = (toggle: "group_by" | "sub_group_by", value: string) => { - if (workspaceSlug && projectId) { + if (workspaceSlug) { let kanbanFilters = issuesFilter?.issueFilters?.kanbanFilters?.[toggle] || []; if (kanbanFilters.includes(value)) { kanbanFilters = kanbanFilters.filter((_value) => _value != value); } else { kanbanFilters.push(value); } - updateFilters(projectId.toString(), EIssueFilterType.KANBAN_FILTERS, { + updateFilters(projectId?.toString() ?? "", EIssueFilterType.KANBAN_FILTERS, { [toggle]: kanbanFilters, }); }