diff --git a/src/utils/dashboard.js b/src/utils/dashboard.js index 1815dae24..4cca230cc 100644 --- a/src/utils/dashboard.js +++ b/src/utils/dashboard.js @@ -56,9 +56,16 @@ export async function serverAddress() { return; } + let config; + try { + config = await resp.json(); + } catch (err) { + return; + } + return { url, - config: await resp.json() + config }; }).catch(error => { console.error(error);