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:
parent
30204a4db5
commit
941da45faa
3 changed files with 26 additions and 22 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue