From: Ramon Van Gorkom Date: Sun, 1 Mar 2026 13:33:22 +0000 (+0100) Subject: luci-app-usteer: fix bug introduced with ES6 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e057bac1efb026db1b0ea5afc9be5d3110584971;p=openwrt-luci.git luci-app-usteer: fix bug introduced with ES6 fix bug introduced by ES6 treatment Signed-off-by: Ramon Van Gorkom --- diff --git a/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js b/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js index 8915aee9f1..1ccf24e651 100644 --- a/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js +++ b/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js @@ -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')));