diff --git a/src/components/List/SelectionItem/SelectionItem.jsx b/src/components/List/SelectionItem/SelectionItem.jsx index 90fe827ba..cfec2c1fa 100644 --- a/src/components/List/SelectionItem/SelectionItem.jsx +++ b/src/components/List/SelectionItem/SelectionItem.jsx @@ -69,7 +69,7 @@ function SelectionItem(props) {
- {postalAddress?.streetAddress && ( + {(postalAddress?.streetAddress?.en || postalAddress?.streetAddress?.fr) && ( {contentLanguageBilingual({ en: postalAddress?.streetAddress?.en, @@ -80,7 +80,7 @@ function SelectionItem(props) { ,  )} -
+ {(postalAddress?.streetAddress?.en || postalAddress?.streetAddress?.fr) &&
} {postalAddress?.addressLocality && ( {contentLanguageBilingual({ diff --git a/src/components/Modal/QuickCreatePlace/QuickCreatePlace.jsx b/src/components/Modal/QuickCreatePlace/QuickCreatePlace.jsx index 579cd7d4d..71f15881f 100644 --- a/src/components/Modal/QuickCreatePlace/QuickCreatePlace.jsx +++ b/src/components/Modal/QuickCreatePlace/QuickCreatePlace.jsx @@ -36,6 +36,7 @@ function QuickCreatePlace(props) { setKeyword, interfaceLanguage, setLocationPlace, + eventForm, } = props; const [form] = Form.useForm(); const { t } = useTranslation(); @@ -107,6 +108,7 @@ function QuickCreatePlace(props) { .unwrap() .then((response) => { setLocationPlace(placesOptions([response], user, calendarContentLanguage)[0]); + eventForm.setFieldValue('locationPlace', id); }) .catch((error) => console.log(error)); }; diff --git a/src/pages/Dashboard/AddEvent/AddEvent.jsx b/src/pages/Dashboard/AddEvent/AddEvent.jsx index 2b389e2cb..b20055d60 100644 --- a/src/pages/Dashboard/AddEvent/AddEvent.jsx +++ b/src/pages/Dashboard/AddEvent/AddEvent.jsx @@ -1647,6 +1647,7 @@ function AddEvent() { interfaceLanguage={user?.interfaceLanguage?.toLowerCase()} calendarContentLanguage={calendarContentLanguage} setLocationPlace={setLocationPlace} + eventForm={form} />