From 44178cbbf55add4d52fc682756404b05d7c4eb8e Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Mon, 16 Feb 2026 10:30:59 +0100 Subject: [PATCH] fix(hexojs): Fix RPC expect unwrapping in dashboard load function The listInstances and listBackups RPC declarations use expect which unwraps the response array directly. Changed results[0].instances to results[0] and results[3].backups to results[3]. Co-Authored-By: Claude Opus 4.5 --- .../htdocs/luci-static/resources/view/hexojs/overview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/secubox/luci-app-hexojs/htdocs/luci-static/resources/view/hexojs/overview.js b/package/secubox/luci-app-hexojs/htdocs/luci-static/resources/view/hexojs/overview.js index 016ea7b2..0515fa52 100644 --- a/package/secubox/luci-app-hexojs/htdocs/luci-static/resources/view/hexojs/overview.js +++ b/package/secubox/luci-app-hexojs/htdocs/luci-static/resources/view/hexojs/overview.js @@ -20,10 +20,10 @@ return view.extend({ api.listBackups() ]).then(function(results) { return { - instances: results[0].instances || [], + instances: results[0] || [], status: results[1], stats: results[2], - backups: results[3].backups || [] + backups: results[3] || [] }; }); },