return empty array when servers missing from config

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
dkanada 2020-10-30 22:13:56 +09:00 committed by GitHub
parent fa1483d3c0
commit b76f5a0a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 [];