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
9 changed files with 8 additions and 23 deletions
+1 -1
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();