luci-mod-network: parse ports without tag/pvid annotation as well

Fixes: 01eac366f6 ("luci-mod-network: fix tagging/pvid state parsing in bridge-vlan ports")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e57f8663af)
This commit is contained in:
Jo-Philipp Wich 2021-06-17 17:44:21 +02:00
parent 4c05263573
commit 165e411cd4

View file

@ -272,9 +272,9 @@ var cbiTagValue = form.Value.extend({
if (s[0] != this.port)
continue;
var t = s[1].match(/t/) ? 't' : 'u';
var t = /t/.test(s[1] || '') ? 't' : 'u';
return s[1].match(/\*/) ? [t, '*'] : [t];
return /\*/.test(s[1] || '') ? [t, '*'] : [t];
}
return ['-'];