mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 17:01:44 +04:00
cli: return the correct data type for enum attributes
Return entries from the value array instead of the provided string Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -70,8 +70,7 @@ const types = {
|
||||
val = lc(val);
|
||||
val = filter(list, (v) => val == lc(v))[0];
|
||||
} else {
|
||||
if (index(list, val) < 0)
|
||||
val = null;
|
||||
val = filter(list, (v) => val == v)[0];
|
||||
}
|
||||
|
||||
if (val == null)
|
||||
|
||||
Reference in New Issue
Block a user