7226-testToMaster_2416 #303

Merged
alexm merged 78 commits from 7226-testToMaster_2416 into master 2024-04-18 05:41:11 +00:00
1 changed files with 4 additions and 5 deletions
Showing only changes of commit b7788512bc - Show all commits

View File

@ -35,17 +35,16 @@ const onDataSaved = (formData) => {
const townObject = townsLocationOptions.value.find(
({id}) => id === formData.townFk
);
newPostcode.town = townObject ? townObject.name : undefined;
newPostcode.town = townObject?.name;
const provinceObject = provincesOptions.value.find(
({id}) => id === formData.provinceFk
);
newPostcode.province = provinceObject ? provinceObject.name : undefined;
newPostcode.province = provinceObject?.name;
const countryObject = countriesOptions.value.find(
({id}) => id === formData.countryFk
);
newPostcode.country = countryObject ? countryObject.country : undefined;
emit('onDataSaved', newPostcode);
newPostcode.country = countryObject?.country;
emit('onDataSaved', newPostcode);
};
const onCityCreated = async ({ name, provinceFk }, formData) => {