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:
CyberMind-FR 2026-01-25 09:17:19 +01:00
parent 134736a0e9
commit 5400e34e1f

View File

@ -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') }),