fix: guard total_count in AuditLog against undefined before toLocaleString
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e7917cde10
commit
dfc9bbe37b
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ export function AuditLog() {
|
|||
<>
|
||||
{allQuery.data && (
|
||||
<p className="text-sm text-gray-500 mb-2">
|
||||
{allQuery.data.total_count.toLocaleString()} events total
|
||||
{(allQuery.data.total_count ?? 0).toLocaleString()} events total
|
||||
</p>
|
||||
)}
|
||||
<AuditTable logs={allQuery.data?.logs ?? []} isLoading={allQuery.isLoading} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue