summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-10-15 10:03:48 +0200
committerJo-Philipp Wich <jo@mein.io>2019-10-15 10:03:48 +0200
commitf61d6ee14887a196c753753bc7eb290b12e5ce9e (patch)
tree65bc172b51d90ba40ed3e10aa6b4853c75c7bfc1 /modules/luci-mod-network/htdocs/luci-static
parent120ece921dcbf6b92e593f5efa0d59c18373c9a4 (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/htdocs/luci-static')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js2
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 c9f5957f8e..e200e438a0 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]);
}
});