mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
check server for null
This commit is contained in:
parent
59b578e8fe
commit
74505accb3
1 changed files with 3 additions and 1 deletions
|
@ -1507,7 +1507,9 @@ var AppInfo = {};
|
|||
|
||||
if (!localApiClient) {
|
||||
var server = connectionManager.getLastUsedServer();
|
||||
localApiClient = connectionManager.getApiClient(server.Id);
|
||||
if (server) {
|
||||
localApiClient = connectionManager.getApiClient(server.Id);
|
||||
}
|
||||
}
|
||||
return localApiClient;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue