126 all logs shown when unauthenticated #129

Merged
noahspannbauer merged 5 commits from 126-all-logs-shown-when-unauthenticated into main 2026-04-18 14:09:51 -04:00
2 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ export class LogInterceptor implements NestInterceptor {
return { return {
entities: logs, entities: logs,
total: data.total, total: logs.length,
hasNextPage: false hasNextPage: false
}; };
} else { } else {

View File

@@ -528,8 +528,8 @@ const Logbook: React.FC<unknown> = () => {
}, [state.totalEntries, state.pagination?.pageSize]) }, [state.totalEntries, state.pagination?.pageSize])
useEffect(() => { useEffect(() => {
console.log(state.pagination) console.log(state)
}, [state.pagination]) }, [state])
return ( return (
<> <>
@@ -554,7 +554,7 @@ const Logbook: React.FC<unknown> = () => {
onClose={() => onClose={() =>
dispatch({ type: 'SET_ALERT', payload: undefined }) dispatch({ type: 'SET_ALERT', payload: undefined })
} }
severity={'info'} severity={state.alert.severity}
> >
{state.alert.message} {state.alert.message}
</Alert> </Alert>