luci-app-usteer: fix bug introduced with ES6

fix bug introduced by ES6 treatment

Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
This commit is contained in:
Ramon Van Gorkom
2026-03-01 14:33:22 +01:00
committed by Paul Donald
parent 399b25c07e
commit e057bac1ef

View File

@@ -330,8 +330,14 @@ return view.extend({
]);
},
poll_status(nodes, [Hosts, Remotehosts, Remoteinfo, Localinfo, Clients]) {
poll_status(nodes, data) {
Hosts = data[1];
Remotehosts = data[2];
Remoteinfo = data[3];
Localinfo = data[4];
Clients = data[5];
const remotehosttableentries = [];
collectRemoteHosts(remotehosttableentries,Remotehosts);
cbi_update_table(nodes.querySelector('#remotehost_table'), remotehosttableentries, E('em', _('No data')));