|
|
@@ -171,8 +171,8 @@ const StaffAllocation: React.FC<Props> = ({ |
|
|
|
allStaffs.filter((staff) => { |
|
|
|
const q = query.toLowerCase(); |
|
|
|
return ( |
|
|
|
(staff.name.toLowerCase().includes(q) || |
|
|
|
staff.staffId.toString().includes(q) || |
|
|
|
(staff.name?.toLowerCase().includes(q) || |
|
|
|
staff.staffId?.toLowerCase().includes(q) || |
|
|
|
staff.currentPosition?.toLowerCase().includes(q)) && |
|
|
|
Object.entries(filters).every(([filterKey, filterValue]) => { |
|
|
|
const staffColumnValue = staff[filterKey as keyof StaffResult]; |
|
|
|