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

Merge pull request #2379 from jellyfin/promise-errors

fix some unhandled promises and refactor some code
This commit is contained in:
Bill Thornton 2021-03-05 11:03:21 -05:00 committed by GitHub
commit 742bd0a262
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 8 additions and 23 deletions

View file

@ -65,7 +65,7 @@ export async function serverAddress() {
}));
}).then(configs => {
const selection = configs.find(obj => !obj.config.StartupWizardCompleted) || configs[0];
return Promise.resolve(selection.url);
return Promise.resolve(selection?.url);
}).catch(error => {
console.log(error);
return Promise.resolve();