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
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:
@ -465,7 +465,7 @@ export default function CertificatesPage() {
|
|||||||
<TableBody>
|
<TableBody>
|
||||||
{Object.values(
|
{Object.values(
|
||||||
certs.reduce((acc, cert) => {
|
certs.reduce((acc, cert) => {
|
||||||
const groupKey = cert.host_id || 'unassigned'
|
const groupKey = `${cert.host_id || 'unassigned'}-${cert.status}`
|
||||||
if (!acc[groupKey]) acc[groupKey] = []
|
if (!acc[groupKey]) acc[groupKey] = []
|
||||||
acc[groupKey].push(cert)
|
acc[groupKey].push(cert)
|
||||||
return acc
|
return acc
|
||||||
|
|||||||
Reference in New Issue
Block a user