From f81804d57fa5659498b8e5cf4cd91a3e88d15643 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 27 Nov 2023 16:43:12 +0000 Subject: [PATCH] resolve result promise in a shorter way --- src/components/Event/FullAddressAutoComplete.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Event/FullAddressAutoComplete.vue b/src/components/Event/FullAddressAutoComplete.vue index 0302b737f..a9f687f08 100644 --- a/src/components/Event/FullAddressAutoComplete.vue +++ b/src/components/Event/FullAddressAutoComplete.vue @@ -347,9 +347,7 @@ const asyncData = async (query: string): Promise => { const result = (await searchAddressLoad(undefined, queryVars)) || - (await searchAddressRefetch(queryVars)?.then((object) => { - return object.data; - })); + (await searchAddressRefetch(queryVars))?.data if (!result) { isFetching.value = false;