From 0196fee7e3f899945c7e97e4d005d6168b57a9c1 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 1 Sep 2023 20:54:14 +0530 Subject: [PATCH] fix: sidebar cycle and module select (#2056) --- .../issues/sidebar-select/blocked.tsx | 2 +- .../issues/sidebar-select/blocker.tsx | 2 +- .../issues/sidebar-select/cycle.tsx | 34 ++++++++++-------- .../issues/sidebar-select/module.tsx | 36 ++++++++++--------- 4 files changed, 40 insertions(+), 34 deletions(-) diff --git a/apps/app/components/issues/sidebar-select/blocked.tsx b/apps/app/components/issues/sidebar-select/blocked.tsx index fbe58b4b2..02cfd3b16 100644 --- a/apps/app/components/issues/sidebar-select/blocked.tsx +++ b/apps/app/components/issues/sidebar-select/blocked.tsx @@ -124,7 +124,7 @@ export const SidebarBlockedSelect: React.FC = ({ - + + {issueCycle ? issueCycle.cycle_detail.name : "No cycle"} + + + + } value={issueCycle ? issueCycle.cycle_detail.id : null} onChange={(value: any) => { diff --git a/apps/app/components/issues/sidebar-select/module.tsx b/apps/app/components/issues/sidebar-select/module.tsx index a183fe951..c9599bdf4 100644 --- a/apps/app/components/issues/sidebar-select/module.tsx +++ b/apps/app/components/issues/sidebar-select/module.tsx @@ -56,27 +56,29 @@ export const SidebarModuleSelect: React.FC = ({ return ( m.id === issueModule?.module)?.name ?? "No module" - }`} - > - - + + {modules?.find((m) => m.id === issueModule?.module)?.name ?? "No module"} + + + + } value={issueModule ? issueModule.module_detail?.id : null} onChange={(value: any) => {