Fixed convertToFilter.

This commit is contained in:
Andrew Lalis 2022-12-21 14:32:28 +01:00
parent 6309877cf2
commit 9fa52dce96
1 changed files with 2 additions and 2 deletions

View File

@ -106,11 +106,11 @@ local function convertToFilter(var)
if type(var) == "table" and #var > 0 and type(var[1]) == "string" then
local filters = {}
for _, expr in pairs(var) do
table.insert(filters, parseFilterExpression(expr))
table.insert(filters, parseItemFilterExpression(expr))
end
return orFilter(filters)
elseif type(var) == "string" then
return parseFilterExpression(var)
return parseItemFilterExpression(var)
elseif type(var) == "function" then
return var
else