From 3ef46f7656cb98c9899e7b07a28f8b6c7768c235 Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Thu, 6 Jun 2024 13:55:03 +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 cffd45a..d57d2fd 100644 --- a/src/components/CreateProject/StaffAllocation.tsx +++ b/src/components/CreateProject/StaffAllocation.tsx @@ -173,7 +173,7 @@ const StaffAllocation: React.FC = ({ 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";