resolve result promise in a shorter way

This commit is contained in:
Thomas Citharel 2023-11-27 16:43:12 +00:00 committed by summersamara
parent 83da88ca28
commit f81804d57f

View file

@ -347,9 +347,7 @@ const asyncData = async (query: string): Promise<void> => {
const result =
(await searchAddressLoad(undefined, queryVars)) ||
(await searchAddressRefetch(queryVars)?.then((object) => {
return object.data;
}));
(await searchAddressRefetch(queryVars))?.data
if (!result) {
isFetching.value = false;