fix(tor-shield): Handle RPC expect unwrapping in hidden services view
Same issue as circuits - RPC expect clause unwraps response to array. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
134736a0e9
commit
5400e34e1f
@ -176,7 +176,8 @@ return view.extend({
|
||||
|
||||
render: function(data) {
|
||||
var self = this;
|
||||
var services = data.services || [];
|
||||
// Handle RPC expect unwrapping - data may be array or object
|
||||
var services = Array.isArray(data) ? data : (data.services || []);
|
||||
|
||||
var view = E('div', { 'class': 'tor-dashboard' }, [
|
||||
E('link', { 'rel': 'stylesheet', 'href': L.resource('tor-shield/dashboard.css') }),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user