diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-15 10:03:48 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-15 10:03:48 +0200 |
commit | f61d6ee14887a196c753753bc7eb290b12e5ce9e (patch) | |
tree | 65bc172b51d90ba40ed3e10aa6b4853c75c7bfc1 /modules/luci-mod-network | |
parent | 120ece921dcbf6b92e593f5efa0d59c18373c9a4 (diff) |
luci-mod-network: wireless.js: fix null access on unavailable country list
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index c9f5957f8..e200e438a 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -483,7 +483,7 @@ var CBIWifiCountryValue = form.Value.extend({ }, renderWidget: function(section_id, option_index, cfgvalue) { - var typeClass = this.keylist.length ? form.ListValue : form.Value; + var typeClass = (this.keylist && this.keylist.length) ? form.ListValue : form.Value; return typeClass.prototype.renderWidget.apply(this, [section_id, option_index, cfgvalue]); } }); |