diff --git a/src/runtime/composables/gql-async-query.ts b/src/runtime/composables/gql-async-query.ts index 5cdfb37..c913235 100644 --- a/src/runtime/composables/gql-async-query.ts +++ b/src/runtime/composables/gql-async-query.ts @@ -19,21 +19,20 @@ export async function gqlAsyncQuery(method: string, options: IGraphQLOp throw new Error('No method detected'); } - // Get config - const config = { - asyncDataOptions: { - lazy: false, - }, - fields: null, - log: false, - variables: null, - ...options, - hashPasswords: options.hashPasswords ?? true, - }; - return useAsyncData( method, async () => { + // Get config + const config = { + asyncDataOptions: { + lazy: false, + }, + fields: null, + log: false, + variables: null, + ...options, + hashPasswords: options.hashPasswords ?? true, + }; const fields = config.fields as unknown as string[]; if (config.log) {