From 87a773884258b5ff8acff95da46edf51ea60c482 Mon Sep 17 00:00:00 2001 From: summersamara Date: Tue, 23 Jan 2024 22:07:56 +0100 Subject: [PATCH] Fix FullAddressAutoComplete in Event form https://git.potsda.mn/potsda.mn/mobilizon/issues/43 --- src/components/Event/FullAddressAutoComplete.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Event/FullAddressAutoComplete.vue b/src/components/Event/FullAddressAutoComplete.vue index 9c6cb521a..6264aa67d 100644 --- a/src/components/Event/FullAddressAutoComplete.vue +++ b/src/components/Event/FullAddressAutoComplete.vue @@ -24,7 +24,11 @@ :required="isRequired" v-model="queryTextWithDefault" :placeholder="placeholderWithDefault" - :formatter="(elem: IAddress) => addressFullName(elem)" + :formatter=" + (elem?: IAddress) => { + if (elem) addressFullName(elem); + } + " :debounce="debounceDelay" @input="asyncData" :icon="canShowLocateMeButton ? null : 'map-marker'" @@ -63,7 +67,7 @@ {