Remove "None" text from empty Blocking and Sub-issues property rows

When there are no blocking issues or sub-issues, show nothing (or just the
"+ Add sub-issue" button) instead of displaying "None" text.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta 2026-04-07 17:47:58 -05:00
parent db1279dc12
commit bac5afa647

View file

@ -846,15 +846,13 @@ export function IssueProperties({
</Link> </Link>
))} ))}
</div> </div>
) : ( ) : null}
<span className="text-sm text-muted-foreground">None</span>
)}
</PropertyRow> </PropertyRow>
<PropertyRow label="Sub-issues"> <PropertyRow label="Sub-issues">
<div className="flex flex-wrap items-center gap-1.5"> <div className="flex flex-wrap items-center gap-1.5">
{childIssues.length > 0 ? ( {childIssues.length > 0
childIssues.map((child) => ( ? childIssues.map((child) => (
<Link <Link
key={child.id} key={child.id}
to={`/issues/${child.identifier ?? child.id}`} to={`/issues/${child.identifier ?? child.id}`}
@ -863,9 +861,7 @@ export function IssueProperties({
{child.identifier ?? child.title} {child.identifier ?? child.title}
</Link> </Link>
)) ))
) : ( : null}
<span className="text-sm text-muted-foreground">None</span>
)}
{onAddSubIssue ? ( {onAddSubIssue ? (
<button <button
type="button" type="button"