fix: audit logs page - use array length instead of .total property
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
146d271dc3
commit
ee9383d301
|
|
@ -79,7 +79,7 @@ export default function AuditLogsPage() {
|
|||
});
|
||||
|
||||
const logs = data ?? [];
|
||||
const total = data?.total ?? 0;
|
||||
const total = logs.length;
|
||||
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
||||
|
||||
const updateFilter = useCallback((key: keyof Filters, value: string) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue