return empty array when servers missing from config
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user