fix: Properly fix Dropdown optionLabel syntax
This commit is contained in:
@@ -339,7 +339,8 @@ const AttributionsPage = () => {
|
|||||||
value={selectedGestionnairePrincipal}
|
value={selectedGestionnairePrincipal}
|
||||||
options={gestionnaires}
|
options={gestionnaires}
|
||||||
onChange={(e) => setSelectedGestionnairePrincipal(e.value)}
|
onChange={(e) => setSelectedGestionnairePrincipal(e.value)}
|
||||||
optionLabel="nom"`n itemTemplate={(option) => option ? `${option.prenom} ${option.nom}` : ''}
|
optionLabel="nom"
|
||||||
|
itemTemplate={(option) => option ? `${option.prenom} ${option.nom}` : ''}
|
||||||
placeholder="Sélectionnez un gestionnaire principal"
|
placeholder="Sélectionnez un gestionnaire principal"
|
||||||
showClear
|
showClear
|
||||||
className="w-full"
|
className="w-full"
|
||||||
@@ -376,4 +377,4 @@ const AttributionsPage = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AttributionsPage;
|
export default AttributionsPage;
|
||||||
|
|||||||
Reference in New Issue
Block a user