Skip to content

Commit 47783dd

Browse files
authored
Staff filter issue
1 parent e73d765 commit 47783dd

File tree

1 file changed

+4
-0
lines changed
  • compliance-web/src/routes/_authenticated/admin

1 file changed

+4
-0
lines changed

compliance-web/src/routes/_authenticated/admin/staff.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export function Staff() {
137137
header: "Position",
138138
filterVariant: "multi-select",
139139
filterSelectOptions: positionList,
140+
filterFn: (row, id, filterValue) => {
141+
if (!filterValue.length) return true;
142+
return filterValue.includes(row.getValue(id));
143+
},
140144
},
141145
{
142146
accessorFn: (row) => row.supervisor?.name,

0 commit comments

Comments
 (0)