From a582021f2c3430ca33a4a62c45f906cfedbb8407 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Thu, 2 Nov 2023 22:17:10 +0530 Subject: [PATCH] fix: active cycle fix (#2618) --- web/components/cycles/active-cycle-details.tsx | 2 +- web/components/cycles/active-cycle-stats.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/cycles/active-cycle-details.tsx b/web/components/cycles/active-cycle-details.tsx index e93b55650..fc89ac3fb 100644 --- a/web/components/cycles/active-cycle-details.tsx +++ b/web/components/cycles/active-cycle-details.tsx @@ -475,7 +475,7 @@ export const ActiveCycleDetails: React.FC = (props) => {
= ({ cycle }) => { Labels - {cycle.total_issues > 0 ? ( + {cycle && cycle.total_issues > 0 ? ( - {cycle.distribution.assignees.map((assignee, index) => { + {cycle.distribution?.assignees?.map((assignee, index) => { if (assignee.assignee_id) return ( = ({ cycle }) => { })} - {cycle.distribution.labels.map((label, index) => ( + {cycle.distribution?.labels?.map((label, index) => (