fix: Fix TypeScript error in Dropdown optionLabel
This commit is contained in:
@@ -339,7 +339,7 @@ const AttributionsPage = () => {
|
||||
value={selectedGestionnairePrincipal}
|
||||
options={gestionnaires}
|
||||
onChange={(e) => setSelectedGestionnairePrincipal(e.value)}
|
||||
optionLabel={(option) => `${option.prenom} ${option.nom}`}
|
||||
optionLabel="nom"`n itemTemplate={(option) => option ? `${option.prenom} ${option.nom}` : ''}
|
||||
placeholder="Sélectionnez un gestionnaire principal"
|
||||
showClear
|
||||
className="w-full"
|
||||
@@ -358,7 +358,7 @@ const AttributionsPage = () => {
|
||||
value={selectedGestionnairesSecondaires}
|
||||
options={gestionnaires.filter(g => g.id !== selectedGestionnairePrincipal?.id)}
|
||||
onChange={(e) => setSelectedGestionnairesSecondaires(e.value)}
|
||||
optionLabel={(option) => `${option.prenom} ${option.nom}`}
|
||||
optionLabel="nom"`n itemTemplate={(option) => option ? `${option.prenom} ${option.nom}` : ''}
|
||||
placeholder="Sélectionnez des gestionnaires secondaires"
|
||||
className="w-full"
|
||||
maxSelectedLabels={3}
|
||||
|
||||
Reference in New Issue
Block a user