diff --git a/front/src/app/components/forms/autocomplete/AppellationAutocomplete.tsx b/front/src/app/components/forms/autocomplete/AppellationAutocomplete.tsx index 25ea70aefc..204163b979 100644 --- a/front/src/app/components/forms/autocomplete/AppellationAutocomplete.tsx +++ b/front/src/app/components/forms/autocomplete/AppellationAutocomplete.tsx @@ -147,7 +147,10 @@ export const AppellationAutocomplete = ({ }) : "Saisissez un métier" } - getOptionLabel={(option) => option.appellation.appellationLabel ?? ""} + getOptionLabel={(option: AppellationMatchDto | undefined) => { + if (!option || !option.appellation) return ""; + return option.appellation.appellationLabel; + }} id={id} renderOption={(props, option) => (