luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-09-20 09:36:23 +02:00
parent 0113171c64
commit 5986124c13

View file

@ -1265,7 +1265,7 @@ return L.view.extend({
o.cfgvalue = function(section_id) {
var slot = +uci.get('wireless', section_id, 'key');
return (slot >= 1 && slot <= 4) ? slot : 1;
return String((slot >= 1 && slot <= 4) ? slot : 1);
};
o.write = function(section_id, value) {