@@ -88,14 +88,14 @@ export default function SiloAuditLogsPage() {
88
88
placeholderData : ( x ) => x ,
89
89
} )
90
90
91
- const auditLogs = useMemo ( ( ) => {
91
+ const allItems = useMemo ( ( ) => {
92
92
return data ?. pages . flatMap ( ( page ) => page . items ) || [ ]
93
93
} , [ data ] )
94
94
95
95
const parentRef = useRef < HTMLDivElement > ( null )
96
96
97
97
const rowVirtualizer = useVirtualizer ( {
98
- count : auditLogs . length ,
98
+ count : allItems . length ,
99
99
getScrollElement : ( ) => document . querySelector ( '#scroll-container' ) ,
100
100
estimateSize,
101
101
overscan : 20 ,
@@ -110,7 +110,7 @@ export default function SiloAuditLogsPage() {
110
110
} }
111
111
>
112
112
{ rowVirtualizer . getVirtualItems ( ) . map ( ( virtualRow ) => {
113
- const log = auditLogs [ virtualRow . index ]
113
+ const log = allItems [ virtualRow . index ]
114
114
115
115
return (
116
116
< div
@@ -164,7 +164,7 @@ export default function SiloAuditLogsPage() {
164
164
} ) }
165
165
</ div >
166
166
< div className = "flex justify-center border-t px-[var(--content-gutter)] py-4 border-secondary" >
167
- { ! hasNextPage && ! isFetching && ! isPending && auditLogs . length > 0 ? (
167
+ { ! hasNextPage && ! isFetching && ! isPending && allItems . length > 0 ? (
168
168
< div className = "text-mono-sm text-quaternary" >
169
169
No more logs to show within selected timeline
170
170
</ div >
@@ -193,7 +193,7 @@ export default function SiloAuditLogsPage() {
193
193
heading = "audit log"
194
194
icon = { < Logs16Icon /> }
195
195
summary = "The audit log provides a record of system activities, including user actions, API calls, and system events."
196
- links = { [ docLinks . auditLogs ] }
196
+ links = { [ docLinks . auditLog ] }
197
197
/>
198
198
</ PageHeader >
199
199
0 commit comments