Private
Public Access
1
0

fix: separate revoked certs from active pairs in CertificatesPage
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 52s
CI Pipeline / Rust Unit Tests (push) Successful in 1m11s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 14s
CI Pipeline / Build .deb & Release (push) Has been skipped

This commit is contained in:
2026-05-16 18:21:35 +00:00
parent 6e2c270c75
commit fe56959d88

View File

@ -465,7 +465,7 @@ export default function CertificatesPage() {
<TableBody>
{Object.values(
certs.reduce((acc, cert) => {
const groupKey = cert.host_id || 'unassigned'
const groupKey = `${cert.host_id || 'unassigned'}-${cert.status}`
if (!acc[groupKey]) acc[groupKey] = []
acc[groupKey].push(cert)
return acc