mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix currentApiClient return type to include undefined
This commit is contained in:
parent
516bd2aab8
commit
5db9384c9c
5 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ export const ApiProvider: FC = ({ children }) => {
|
|||
|
||||
useEffect(() => {
|
||||
ServerConnections.currentApiClient()
|
||||
.getCurrentUser()
|
||||
?.getCurrentUser()
|
||||
.then(newUser => updateApiUser(undefined, newUser))
|
||||
.catch(err => {
|
||||
console.info('[ApiProvider] Could not get current user', err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue