From 5986124c13811b55754ec8800f280bc7221160b1 Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich <jo@mein.io>
Date: Fri, 20 Sep 2019 09:36:23 +0200
Subject: luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
---
 .../htdocs/luci-static/resources/view/network/wireless.js               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'modules')

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 e5213ff139..8049c4a3a6 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
@@ -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) {
-- 
cgit v1.2.3