diff --git a/lib/components/common/CustomMappingDropdown.tsx b/lib/components/common/CustomMappingDropdown.tsx index 5d1b083..9b8e49b 100644 --- a/lib/components/common/CustomMappingDropdown.tsx +++ b/lib/components/common/CustomMappingDropdown.tsx @@ -17,7 +17,7 @@ import {CreateCustomDictionaryFieldHeader} from "./CreateCustomDictionaryFieldHe import {DataContext} from "../../contexts/data/DataContext.ts"; import NoResultField from "./NoResultField.tsx"; import {useUIContext} from "../../contexts/ui/UIContext.ts"; -import {getAbbreviationFromOption} from "../../helpers/optionsHelpers.ts"; +import {getTitleFromOption} from "../../helpers/optionsHelpers.ts"; import { isCustomDictionaryValid } from '../../services/validatorsService.ts'; const { @@ -173,6 +173,7 @@ interface CustomEntitiesDropdownProps { options: { errors?: string; searchPlaceholder?: string; + initialSearchInput?: string; noResultReason?: string; onSearch: (searchValue: string) => Promise; onSelection: (option: Option, newIsSelectedState: boolean) => void; @@ -201,6 +202,7 @@ export default function CustomEntitiesDropdown({ options: { errors, searchPlaceholder, + initialSearchInput, noResultReason, onSearch, onSelection, @@ -225,7 +227,7 @@ export default function CustomEntitiesDropdown({ const [hoveredOption, setHoveredOption] = useState