Fix graphQL error (#6573)

This commit is contained in:
Daniel Espino García
2022-08-12 20:19:52 +02:00
committed by GitHub
parent 59c03b7b36
commit da4b7184df

View File

@@ -16,7 +16,7 @@ const doGQLQuery = async (serverUrl: string, query: string, variables: {[name: s
}
try {
const response = await client.doFetch('/api/v5/graphql', {method: 'post', body: JSON.stringify({query, variables, operationName})}) as GQLResponse;
const response = await client.doFetch('/api/v5/graphql', {method: 'post', body: {query, variables, operationName}}) as GQLResponse;
return response;
} catch (error) {
return {error};