mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export function getMultiServer() {
|
||||||
|
|
||||||
export function getServers() {
|
export function getServers() {
|
||||||
return getConfig().then(config => {
|
return getConfig().then(config => {
|
||||||
return config.servers;
|
return config.servers || [];
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log('cannot get web config:', error);
|
console.log('cannot get web config:', error);
|
||||||
return [];
|
return [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue