fix(hub): health monitor reads nested health-batch .modules (ref #628)

This commit is contained in:
CyberMind-FR 2026-06-17 08:59:40 +02:00
parent 2a8c1b33de
commit 5763aa3a73

View File

@ -65,8 +65,10 @@
async function load() {
try {
const modules = await getJSON(BATCH);
render(modules || {});
const batch = await getJSON(BATCH);
// health-batch returns {modules: {id: {status,msg}}, count: N}
const modules = (batch && batch.modules) || batch || {};
render(modules);
$('updated').textContent = 'updated ' + new Date().toLocaleTimeString();
$('loading').hidden = true; $('error').hidden = true; $('content').hidden = false;
getJSON(INFO).then((i) => {