resolve result promise in a shorter way
This commit is contained in:
parent
83da88ca28
commit
f81804d57f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue