mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Address review feedback
This commit is contained in:
parent
3a9534c5ba
commit
6c370e68c5
2 changed files with 10 additions and 12 deletions
|
@ -5,7 +5,7 @@ import { useApi } from 'hooks/useApi';
|
|||
import type { AxiosRequestConfig } from 'axios';
|
||||
|
||||
const fetchServerLog = async (
|
||||
api: Api | undefined,
|
||||
api: Api,
|
||||
name: string,
|
||||
options?: AxiosRequestConfig
|
||||
) => {
|
||||
|
@ -23,7 +23,7 @@ export const useServerLog = (name: string) => {
|
|||
|
||||
return useQuery({
|
||||
queryKey: ['ServerLog', name],
|
||||
queryFn: ({ signal }) => fetchServerLog(api, name, { signal }),
|
||||
queryFn: ({ signal }) => fetchServerLog(api!, name, { signal }),
|
||||
enabled: !!api
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue