Skip to content

Commit a3001ff

Browse files
committed
Fix sub-issue count issue
1 parent f54d27f commit a3001ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/IssueList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export const IssueList = ({
616616
<span>{new Date(post.due_date).toLocaleDateString()}</span>
617617
</div>
618618
)}
619-
{post.sub_issue_count && post.sub_issue_count > 0 && (
619+
{(post.sub_issue_count ?? 0) > 0 && (
620620
<div className="flex items-center space-x-1">
621621
<GitBranch className="h-3 w-3"/>
622622
<span>{post.sub_issues_closed_count || 0}/{post.sub_issue_count} sub-issues</span>
@@ -730,7 +730,7 @@ export const IssueList = ({
730730
</div>
731731
</div>
732732

733-
{(post.assignee || post.story_points || post.due_date || (post.sub_issue_count && post.sub_issue_count > 0)) && (
733+
{(post.assignee || post.story_points || post.due_date || (post.sub_issue_count ?? 0) > 0) && (
734734
<div
735735
className="flex items-center justify-between text-xs text-muted-foreground pt-2 border-t border-border/50">
736736
<div className="flex items-center space-x-2">
@@ -747,7 +747,7 @@ export const IssueList = ({
747747
<span>{post.story_points}</span>
748748
</div>
749749
)}
750-
{post.sub_issue_count && post.sub_issue_count > 0 && (
750+
{(post.sub_issue_count ?? 0) > 0 && (
751751
<div className="flex items-center space-x-1">
752752
<GitBranch className="h-3 w-3"/>
753753
<span

0 commit comments

Comments
 (0)