diff --git a/src/aleph/vm/orchestrator/views/static/helpers.js b/src/aleph/vm/orchestrator/views/static/helpers.js index ebaec4fae..7648f4460 100644 --- a/src/aleph/vm/orchestrator/views/static/helpers.js +++ b/src/aleph/vm/orchestrator/views/static/helpers.js @@ -7,14 +7,16 @@ async function fetchApiStatus () { if(q.ok){ res.status = "working properly ✅"; } - switch(Number(q.status)){ - case 503: - res.status = "not working properly ❌"; - res.details = await q.json(); - case 500: - res.status = "❌ Failed"; - default: - res.status = q.status; + else { + switch(Number(q.status)){ + case 503: + res.status = "not working properly ❌"; + res.details = await q.json(); + case 500: + res.status = "❌ Failed"; + default: + res.status = q.status; + } } return res;