Document types sorted alphabeticaly
This commit is contained in:
parent
b7d49f022c
commit
dad1da076d
@ -108,12 +108,12 @@ export default function DeedTypesInformations(props: IProps) {
|
||||
setSelectedDocuments(values as IOption[]);
|
||||
}, []);
|
||||
|
||||
const formattedOptions: IOption[] = availableDocuments.map((document) => {
|
||||
return {
|
||||
const formattedOptions: IOption[] = availableDocuments
|
||||
.map((document) => ({
|
||||
label: document.name,
|
||||
value: document.uid,
|
||||
};
|
||||
});
|
||||
}))
|
||||
.sort((a, b) => a.label.localeCompare(b.label));
|
||||
|
||||
return (
|
||||
<DefaultDeedTypesDashboard mobileBackText={"Liste des types d'actes"}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user