mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 11:58:20 -07:00
return empty array when servers missing from config
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
fa1483d3c0
commit
b76f5a0a0f
@ -87,7 +87,7 @@ export function getMultiServer() {
|
||||
|
||||
export function getServers() {
|
||||
return getConfig().then(config => {
|
||||
return config.servers;
|
||||
return config.servers || [];
|
||||
}).catch(error => {
|
||||
console.log('cannot get web config:', error);
|
||||
return [];
|
||||
|
Loading…
Reference in New Issue
Block a user