From dfc9bbe37b4cf5d2e9a4c94b17f7d3f606f82b5d Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Wed, 29 Apr 2026 15:32:07 +0100 Subject: [PATCH] fix: guard total_count in AuditLog against undefined before toLocaleString Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/routes/admin/AuditLog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/admin/AuditLog.tsx b/frontend/src/routes/admin/AuditLog.tsx index 17d6f25..876a7c4 100644 --- a/frontend/src/routes/admin/AuditLog.tsx +++ b/frontend/src/routes/admin/AuditLog.tsx @@ -307,7 +307,7 @@ export function AuditLog() { <> {allQuery.data && (

- {allQuery.data.total_count.toLocaleString()} events total + {(allQuery.data.total_count ?? 0).toLocaleString()} events total

)}