Przeglądaj źródła

[Project - 200] Quick fix for "Sublead" - Add "N/A" option.

main
cyril.tsui 4 dni temu
rodzic
commit
2e5bcf4097
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      src/components/CreateProject/ProjectClientDetails.tsx

+ 4
- 2
src/components/CreateProject/ProjectClientDetails.tsx Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz