feat: make errors inline in add app connection

This commit is contained in:
Ali BARIN
2022-07-30 01:36:52 +02:00
parent 10c64167d7
commit 913a2773c1
4 changed files with 34 additions and 10 deletions

View File

@@ -10,7 +10,13 @@ enum AuthenticationSteps {
const processMutation = async (step: IAuthenticationStep, variables: IJSONObject) => {
const mutation = MUTATIONS[step.name];
const mutationResponse = await apolloClient.mutate({ mutation, variables: { input: variables } });
const mutationResponse = await apolloClient.mutate({
mutation,
variables: { input: variables },
context: {
autoSnackbar: false,
},
});
const responseData = mutationResponse.data[step.name];
return responseData;