Fix graphQL error (#6573)
This commit is contained in:
parent
59c03b7b36
commit
da4b7184df
1 changed files with 1 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in a new issue