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";