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

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