luci-app-usteer: fix bug introduced with ES6
authorRamon Van Gorkom <redacted>
Sun, 1 Mar 2026 13:33:22 +0000 (14:33 +0100)
committerPaul Donald <redacted>
Mon, 2 Mar 2026 17:53:47 +0000 (18:53 +0100)
fix bug introduced by ES6 treatment

Signed-off-by: Ramon Van Gorkom <redacted>
applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js

index 8915aee9f1579abd95a884b4e20a6f565c550237..1ccf24e6510158267f55b62bc87600054d78b3bb 100644 (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')));
git clone https://git.99rst.org/PROJECT