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 =
|
const result =
|
||||||
(await searchAddressLoad(undefined, queryVars)) ||
|
(await searchAddressLoad(undefined, queryVars)) ||
|
||||||
(await searchAddressRefetch(queryVars)?.then((object) => {
|
(await searchAddressRefetch(queryVars))?.data
|
||||||
return object.data;
|
|
||||||
}));
|
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
isFetching.value = false;
|
isFetching.value = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user