forked from github/plane
fix: active cycle stats empty state (#4067)
This commit is contained in:
parent
fb189ca447
commit
51683e6b2f
@ -201,7 +201,7 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
|
|||||||
as="div"
|
as="div"
|
||||||
className="flex h-52 w-full flex-col gap-1 overflow-y-auto text-custom-text-200 vertical-scrollbar scrollbar-sm"
|
className="flex h-52 w-full flex-col gap-1 overflow-y-auto text-custom-text-200 vertical-scrollbar scrollbar-sm"
|
||||||
>
|
>
|
||||||
{cycleIssues.length > 0 ? (
|
{cycle?.distribution?.assignees && cycle.distribution.assignees.length > 0 ? (
|
||||||
cycle.distribution?.assignees?.map((assignee, index) => {
|
cycle.distribution?.assignees?.map((assignee, index) => {
|
||||||
if (assignee.assignee_id)
|
if (assignee.assignee_id)
|
||||||
return (
|
return (
|
||||||
@ -246,8 +246,8 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
|
|||||||
as="div"
|
as="div"
|
||||||
className="flex h-52 w-full flex-col gap-1 overflow-y-auto text-custom-text-200 vertical-scrollbar scrollbar-sm"
|
className="flex h-52 w-full flex-col gap-1 overflow-y-auto text-custom-text-200 vertical-scrollbar scrollbar-sm"
|
||||||
>
|
>
|
||||||
{cycleIssues.length > 0 ? (
|
{cycle?.distribution?.labels && cycle.distribution.labels.length > 0 ? (
|
||||||
cycle.distribution?.labels?.map((label, index) => (
|
cycle.distribution.labels?.map((label, index) => (
|
||||||
<SingleProgressStats
|
<SingleProgressStats
|
||||||
key={label.label_id ?? `no-label-${index}`}
|
key={label.label_id ?? `no-label-${index}`}
|
||||||
title={
|
title={
|
||||||
|
Loading…
Reference in New Issue
Block a user