fix: remove input out of textConnection query

This commit is contained in:
Ali BARIN
2022-03-08 23:52:49 +01:00
parent 5d1c4b81e7
commit d4bef44b93
2 changed files with 4 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ function AppConnectionRow(props: AppConnectionRowProps): React.ReactElement {
enqueueSnackbar(formatMessage('connection.deletedMessage'), { variant: 'success' }); enqueueSnackbar(formatMessage('connection.deletedMessage'), { variant: 'success' });
} else if (action.type === 'test') { } else if (action.type === 'test') {
setVerificationVisible(true); setVerificationVisible(true);
testConnection({ variables: { input: { id } } }); testConnection({ variables: { id } });
} }
}, [deleteConnection, id, testConnection, formatMessage, enqueueSnackbar]); }, [deleteConnection, id, testConnection, formatMessage, enqueueSnackbar]);

View File

@@ -54,7 +54,7 @@ function ChooseAccountSubstep(props: ChooseAccountSubstepProps): React.ReactElem
TEST_CONNECTION, TEST_CONNECTION,
{ {
variables: { variables: {
input: { id: connection?.id, } id: connection?.id,
} }
} }
); );
@@ -63,7 +63,7 @@ function ChooseAccountSubstep(props: ChooseAccountSubstepProps): React.ReactElem
if (connection?.id) { if (connection?.id) {
testConnection({ testConnection({
variables: { variables: {
input: { id: connection.id, } id: connection.id,
} }
}); });
} }
@@ -97,9 +97,7 @@ function ChooseAccountSubstep(props: ChooseAccountSubstepProps): React.ReactElem
React.useEffect(() => { React.useEffect(() => {
if (step.connection?.id) { if (step.connection?.id) {
retestConnection({ retestConnection({
input: {
id: step.connection.id, id: step.connection.id,
},
}); });
} }
}, [step.connection?.id, retestConnection]) }, [step.connection?.id, retestConnection])