IO-2213 Add Ins Co filtering to several pages.

This commit is contained in:
Patrick Fic
2023-03-13 14:37:05 -07:00
parent f3911859c7
commit 73bcc72fc3
7 changed files with 99 additions and 8 deletions

View File

@@ -260,6 +260,19 @@ export function JobsList({ bodyshop }) {
dataIndex: "ins_co_nm",
key: "ins_co_nm",
ellipsis: true,
filters:
(jobs &&
jobs
.map((j) => j.ins_co_nm)
.filter(onlyUnique)
.map((s) => {
return {
text: s,
value: [s],
};
})) ||
[],
onFilter: (value, record) => value.includes(record.ins_co_nm),
responsive: ["md"],
},
{