forked from github/plane
fix: active cycle fix (#2618)
This commit is contained in:
parent
caca2bb548
commit
a582021f2c
@ -475,7 +475,7 @@ export const ActiveCycleDetails: React.FC<IActiveCycleDetails> = (props) => {
|
||||
</div>
|
||||
<div className="relative h-64">
|
||||
<ProgressChart
|
||||
distribution={cycle.distribution.completion_chart}
|
||||
distribution={cycle.distribution?.completion_chart ?? {}}
|
||||
startDate={cycle.start_date ?? ""}
|
||||
endDate={cycle.end_date ?? ""}
|
||||
totalIssues={cycle.total_issues}
|
||||
|
@ -67,10 +67,10 @@ export const ActiveCycleProgressStats: React.FC<Props> = ({ cycle }) => {
|
||||
Labels
|
||||
</Tab>
|
||||
</Tab.List>
|
||||
{cycle.total_issues > 0 ? (
|
||||
{cycle && cycle.total_issues > 0 ? (
|
||||
<Tab.Panels as={Fragment}>
|
||||
<Tab.Panel as="div" className="w-full gap-1 overflow-y-scroll items-center text-custom-text-200 p-4">
|
||||
{cycle.distribution.assignees.map((assignee, index) => {
|
||||
{cycle.distribution?.assignees?.map((assignee, index) => {
|
||||
if (assignee.assignee_id)
|
||||
return (
|
||||
<SingleProgressStats
|
||||
@ -105,7 +105,7 @@ export const ActiveCycleProgressStats: React.FC<Props> = ({ cycle }) => {
|
||||
})}
|
||||
</Tab.Panel>
|
||||
<Tab.Panel as="div" className="w-full gap-1 overflow-y-scroll items-center text-custom-text-200 p-4">
|
||||
{cycle.distribution.labels.map((label, index) => (
|
||||
{cycle.distribution?.labels?.map((label, index) => (
|
||||
<SingleProgressStats
|
||||
key={label.label_id ?? `no-label-${index}`}
|
||||
title={
|
||||
|
Loading…
Reference in New Issue
Block a user