diff --git a/packages/ra-core/src/form/useSuggestions.ts b/packages/ra-core/src/form/useSuggestions.ts index 791216fa229..bba5f4983bd 100644 --- a/packages/ra-core/src/form/useSuggestions.ts +++ b/packages/ra-core/src/form/useSuggestions.ts @@ -98,7 +98,7 @@ interface Options extends UseChoicesOptions { emptyText?: string; emptyValue?: any; limitChoicesToValue?: boolean; - matchSuggestion?: (filter: string) => (suggestion: any) => boolean; + matchSuggestion?: (filter: string, suggestion: any) => boolean; suggestionLimit?: number; selectedItem?: any | any[]; }