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

Remove unnecessary api call in app router

This commit is contained in:
Bill Thornton 2022-04-22 15:06:17 -04:00
parent de0ae288cf
commit df3f53bbc0

View file

@ -202,13 +202,7 @@ class AppRouter {
this.goHome(); this.goHome();
break; break;
case 'ServerSignIn': case 'ServerSignIn':
result.ApiClient.getPublicUsers().then((users) => { this.showLocalLogin(result.ApiClient.serverId());
if (users.length) {
this.showLocalLogin(result.Servers[0].Id);
} else {
this.showLocalLogin(result.Servers[0].Id, true);
}
});
break; break;
case 'ServerSelection': case 'ServerSelection':
this.showSelectServer(); this.showSelectServer();