fix: auto repair bugs #49

This commit is contained in:
repair-agent 2026-02-26 10:34:57 +08:00
parent ab3ae382e9
commit 3d60b07c0f

View File

@ -284,12 +284,12 @@ export default function BugDetail() {
<span style={{ fontSize: '14px' }}>
PR #{bug.pr_number} | {bug.branch_name || 'fix branch'}
</span>
<a href={bug.pr_url} target="_blank" rel="noopener noreferrer" className="btn-link" style={{ display: 'inline-flex', alignItems: 'center', gap: '4px' }}>
<a href={bug.pr_url || undefined} target="_blank" rel="noopener noreferrer" className="btn-link" style={{ display: 'inline-flex', alignItems: 'center', gap: '4px' }}>
PR <ExternalLink size={12} />
</a>
{bug.rejection_count > 0 && (
{((bug.rejection_count ?? 0) > 0) && (
<span style={{ fontSize: '13px', color: 'var(--warning)' }}>
{bug.rejection_count}
{bug.rejection_count ?? 0}
</span>
)}
</div>