luci-mod-network: wireless.js: fix null access on unavailable country list
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
120ece921d
commit
f61d6ee148
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue