From 2d70dc8ac60cebdd67cdc2b9b104358a4fc06bdd Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Thu, 13 Jun 2024 14:15:14 +0800 Subject: [PATCH] update --- src/components/CreateProject/StaffAllocation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CreateProject/StaffAllocation.tsx b/src/components/CreateProject/StaffAllocation.tsx index d57d2fd..76130e7 100644 --- a/src/components/CreateProject/StaffAllocation.tsx +++ b/src/components/CreateProject/StaffAllocation.tsx @@ -172,7 +172,7 @@ const StaffAllocation: React.FC = ({ const q = query.toLowerCase(); return ( (staff.name.toLowerCase().includes(q) || - staff.id.toString().includes(q) || + staff.staffId.toString().includes(q) || staff.currentPosition?.toLowerCase().includes(q)) && Object.entries(filters).every(([filterKey, filterValue]) => { const staffColumnValue = staff[filterKey as keyof StaffResult];