From 54f5b171bc957de1b379a2b697df87a5cb7c4042 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Fri, 23 Dec 2022 19:18:39 +0100 Subject: [PATCH] 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 --- .../luci-static/resources/view/status/channel_analysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2