fix: system-hub api.js - Remove expect auto-extraction

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 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2025-12-26 17:28:00 +01:00
parent ee4484fff4
commit ebedc5f9d8

View File

@ -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({