diff --git a/src/components/forms/CreateUnitsForm.js b/src/components/forms/CreateUnitsForm.js index a6065e42..6dc826e7 100644 --- a/src/components/forms/CreateUnitsForm.js +++ b/src/components/forms/CreateUnitsForm.js @@ -121,6 +121,15 @@ const CreateUnitsForm = withRouter(({ onClose, left, top, width, height }) => { [pickLists], ); + const selectCountriesOptions = useMemo( + () => + pickLists.countries.map(country => ({ + value: country, + label: country, + })), + [pickLists], + ); + const handleEditUnits = async () => { setErrorMessage({}); const dataToSend = _.cloneDeep(newUnits); @@ -370,22 +379,30 @@ const CreateUnitsForm = withRouter(({ onClose, left, top, width, height }) => { - + setEditUnits(prev => ({ ...prev, - countryJurisdictionOfOwner: value, + countryJurisdictionOfOwner: + selectedOptions[0].value, })) } + placeholder={intl.formatMessage({ + id: 'country-jurisdiction-of-owner', + })} /> {errorMessageAlert('countryJurisdictionOfOwner')}