Convert to array before calling filter() Signed-off-by: Felix Fietkau <[email protected]>
@@ -64,6 +64,8 @@ const types = {
return val;
let list = this.value;
+ if (type(list) == "object")
+ list = keys(list);
if (this.ignore_case) {
val = lc(val);
val = filter(list, (v) => val == lc(v))[0];