From ebedc5f9d866d253c0e44d90ee623657a471c804 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Fri, 26 Dec 2025 17:28:00 +0100 Subject: [PATCH] fix: system-hub api.js - Remove expect auto-extraction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same fix as secubox: removed expect: { modules: [] } from RPC declarations. This was auto-extracting the modules property, causing components list to be empty. Now both SecuBox Modules and System Hub Components work correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../htdocs/luci-static/resources/system-hub/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-system-hub/htdocs/luci-static/resources/system-hub/api.js b/luci-app-system-hub/htdocs/luci-static/resources/system-hub/api.js index b41d2b63..82d80bb2 100644 --- a/luci-app-system-hub/htdocs/luci-static/resources/system-hub/api.js +++ b/luci-app-system-hub/htdocs/luci-static/resources/system-hub/api.js @@ -91,14 +91,14 @@ var callSaveSettings = rpc.declare({ var callGetComponents = rpc.declare({ object: 'luci.system-hub', method: 'get_components', - expect: { modules: [] } + expect: {} }); var callGetComponentsByCategory = rpc.declare({ object: 'luci.system-hub', method: 'get_components_by_category', params: ['category'], - expect: { modules: [] } + expect: {} }); return baseclass.extend({