fix: remove input out of textConnection query
This commit is contained in:
@@ -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]);
|
||||||
|
|
||||||
|
@@ -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])
|
||||||
|
Reference in New Issue
Block a user