From af70f16ef9a96845d6f398f883d12fe0b4bb83a2 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Wed, 3 Mar 2021 17:13:11 +0100 Subject: [PATCH] Fix ifname --- .../htdocs/luci-static/resources/view/network/interfaces.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 9d7a219ca..c76e02dec 100644 --- a/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -511,8 +511,8 @@ return view.extend({ var new_ifnames = L.toArray(value); - if (!value) - new_ifnames.length = Math.max(new_ifnames.length, 1); + if (value == undefined) + return; old_ifnames.sort(); new_ifnames.sort();