|
|
@@ -173,7 +173,7 @@ const StaffAllocation: React.FC<Props> = ({ |
|
|
|
return ( |
|
|
|
(staff.name.toLowerCase().includes(q) || |
|
|
|
staff.id.toString().includes(q) || |
|
|
|
staff.currentPosition.toLowerCase().includes(q)) && |
|
|
|
staff.currentPosition?.toLowerCase().includes(q)) && |
|
|
|
Object.entries(filters).every(([filterKey, filterValue]) => { |
|
|
|
const staffColumnValue = staff[filterKey as keyof StaffResult]; |
|
|
|
return staffColumnValue === filterValue || filterValue === "All"; |
|
|
|