|
|
@@ -414,12 +414,14 @@ const ProjectClientDetails: React.FC<Props> = ({ |
|
|
{subTeamLeads.length > 0 && <Grid item xs={6}> |
|
|
{subTeamLeads.length > 0 && <Grid item xs={6}> |
|
|
<ControlledAutoComplete |
|
|
<ControlledAutoComplete |
|
|
control={control} |
|
|
control={control} |
|
|
options={subTeamLeads |
|
|
|
|
|
|
|
|
options={ |
|
|
|
|
|
[{id: undefined, label: 'N/A'}, |
|
|
|
|
|
...subTeamLeads |
|
|
// .filter(staff => staff.team === teamLeads.find(teamLead => teamLead.id === selectedTeamLeadId)?.team) |
|
|
// .filter(staff => staff.team === teamLeads.find(teamLead => teamLead.id === selectedTeamLeadId)?.team) |
|
|
.map((staff) => ({ |
|
|
.map((staff) => ({ |
|
|
...staff, |
|
|
...staff, |
|
|
label: `${staff.staffId} - ${staff.name} (${staff.team})`, |
|
|
label: `${staff.staffId} - ${staff.name} (${staff.team})`, |
|
|
}))} |
|
|
|
|
|
|
|
|
}))]} |
|
|
name="projectSubLeadId" |
|
|
name="projectSubLeadId" |
|
|
label={t("Sub Team Lead")} |
|
|
label={t("Sub Team Lead")} |
|
|
noOptionsText={t("No Sub Team Lead")} |
|
|
noOptionsText={t("No Sub Team Lead")} |
|
|
|