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: 75dcb09754
("luci-mod-status: improve channel_analysis page")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
9e7f1c81c7
commit
54f5b171bc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue