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:
parent
ee4484fff4
commit
ebedc5f9d8
@ -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({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user