From a8f125cfa825df9655b5c425a084eda1ca33e96e Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 31 Mar 2023 03:50:35 +0530 Subject: [PATCH] fix: blocked and blocking in issue details sidebar (#641) --- .../issues/sidebar-select/blocked.tsx | 27 ++++++++++--------- .../issues/sidebar-select/blocker.tsx | 5 ++-- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/apps/app/components/issues/sidebar-select/blocked.tsx b/apps/app/components/issues/sidebar-select/blocked.tsx index c704b0e45..62169222a 100644 --- a/apps/app/components/issues/sidebar-select/blocked.tsx +++ b/apps/app/components/issues/sidebar-select/blocked.tsx @@ -113,17 +113,9 @@ export const SidebarBlockedSelect: React.FC = ({
{watch("blocked_list") && watch("blocked_list").length > 0 ? watch("blocked_list").map((issue) => ( - { - const updatedBlocked: string[] = watch("blocked_list").filter( - (i) => i !== issue - ); - submitChanges({ - blocks_list: updatedBlocked, - }); - }} > = ({ }`} - + +
)) : null} diff --git a/apps/app/components/issues/sidebar-select/blocker.tsx b/apps/app/components/issues/sidebar-select/blocker.tsx index 6f7ae1d01..4dc245830 100644 --- a/apps/app/components/issues/sidebar-select/blocker.tsx +++ b/apps/app/components/issues/sidebar-select/blocker.tsx @@ -129,7 +129,8 @@ export const SidebarBlockerSelect: React.FC = ({ }`} - { const updatedBlockers: string[] = watch("blockers_list").filter( @@ -141,7 +142,7 @@ export const SidebarBlockerSelect: React.FC = ({ }} > - + )) : null}