fix(ui): guard chip shows pending count, not raw list

This commit is contained in:
2026-08-22 15:03:15 -06:00
parent 4c1144ab32
commit aba08e36c7
@@ -289,7 +289,7 @@ views.dashboard = (root) => {
guardChip.textContent = 'GUARD IN SYNC';
} else {
guardChip.className = 'health-chip warn';
guardChip.textContent = 'GUARD PENDING' + (g.pending != null ? ' · ' + g.pending : '');
guardChip.textContent = 'GUARD PENDING' + (g.pending && g.pending.length ? ' · ' + g.pending.length : '');
}
renderEvents(h2.events);
}).catch(() => {});