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:
commit
742bd0a262
9 changed files with 8 additions and 23 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue