1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Move server logs to mui

This commit is contained in:
viown 2025-01-14 01:57:43 +03:00
parent 30204a4db5
commit 941da45faa
3 changed files with 26 additions and 22 deletions

View file

@ -6,7 +6,7 @@ import type { AxiosRequestConfig } from 'axios';
const fetchServerLogs = async (api?: Api, options?: AxiosRequestConfig) => {
if (!api) {
console.error('[useLogEntries] No API instance available');
console.error('[useServerLogs] No API instance available');
return;
}
@ -19,7 +19,7 @@ export const useServerLogs = () => {
const { api } = useApi();
return useQuery({
queryKey: [ 'LogEntries' ],
queryKey: [ 'ServerLogs' ],
queryFn: ({ signal }) => fetchServerLogs(api, { signal }),
enabled: !!api
});