fix bug some array filter

This commit is contained in:
2026-06-29 13:39:41 +07:00
parent 1d7370e557
commit 74250261f2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export default function ListVirtual({
filter.forEach(f => payload.where(f.logic_operator || "=", f.name, f.value, f.operator || "AND", f.value1 || null, f.table_name || null));
}
if (filter.some(f => f.name === "company_id")) {
if (Array.isArray(filter) && filter.some(f => f.name === "company_id")) {
payload.addJoin("company", ["name"]);
}