fix: wrap model data in named objects and fix renderGuardMulti empty check

This commit is contained in:
2026-06-23 00:08:40 +00:00
parent b673e87c9b
commit 75aa6fb885
5 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export default definePage({
const guard = renderGuard(state.acme, 'Certificates', 'ACME certificate management', state.acme.data);
if (guard) return guard;
const rows = (state.acme.data || []).map(c => {
const rows = (state.acme.data?.certs || []).map(c => {
const badge = certStatusBadge({ expired: c.expired, daysRemaining: c.days_remaining });
return h('tr', { key: c.domain },