Skip to content
Snippets Groups Projects
Commit f228c4a2 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

feat(onboarding): sort structure types

parent 66a3ec77
No related branches found
No related tags found
2 merge requests!572V2.4.0,!570Resolve "[OnBoarding] - Rajouter un type" : trier les types
......@@ -34,6 +34,7 @@ export class StructureTypePickerComponent implements OnInit {
this.structureTypeService.getStructureTypes().subscribe((types) => {
// Filter "other" structure type
types = types.filter((type) => type.selectable);
types = types.sort((a, b) => a.value.localeCompare(b.value));
this.publicTypes = types.filter((type) => type.category === this.structureTypeCategoryEnum.public);
this.privateTypes = types.filter((type) => type.category === this.structureTypeCategoryEnum.private);
this.privateLucrativeTypes = types.filter(
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment