diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-23 19:18:39 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-23 19:19:26 +0100 |
commit | 54f5b171bc957de1b379a2b697df87a5cb7c4042 (patch) | |
tree | 33aabe97e3189eab9fb2b4322d48493c9128c1a5 | |
parent | 9e7f1c81c724ad910d7fd268bf8beb891c4b9ce3 (diff) |
luci-mod-status: fix channel_analysis ReferenceError: diff is not defined
In refactoring the code there was an error and the sort function wasn't
correctly reworked with diff not correctly dropped.
Drop that and correctly sort the WiFi ap if the channel is different.
Fixes: 75dcb0975472 ("luci-mod-status: improve channel_analysis page")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js index 9f266ebef3..ae675afa42 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js @@ -231,7 +231,7 @@ return view.extend({ results.sort(function(a, b) { if (a.channel - b.channel) - return diff; + return 1; if (a.ssid < b.ssid) return -1; |