diff --git a/packages/ui/modules/hooks/useListValuesAutocomplete.jsx b/packages/ui/modules/hooks/useListValuesAutocomplete.jsx index 2bc272d3a..f439b64b9 100644 --- a/packages/ui/modules/hooks/useListValuesAutocomplete.jsx +++ b/packages/ui/modules/hooks/useListValuesAutocomplete.jsx @@ -346,13 +346,13 @@ const useListValuesAutocomplete = ({ } if (!option && allowCustomValues) { // there is just string value, it's not item from list - return valueOrOption; + return valueOrOption.toString(); } if (!option) { // weird - return valueOrOption; + return valueOrOption.toString(); } - return option.title || option.label || option.value; // fallback to value + return option.title || option.label || option.value.toString(); // fallback to value }; const fixedOptions = uif === "mui" ? fixListValuesGroupOrder(options) : options;