From 07a6417f0f52988e3dfac4583aab84426fc471cc Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Wed, 13 Sep 2023 17:28:43 +0200 Subject: [PATCH] fix(editor): Prevent duplicate creation of credential for OAuth2 (#7163) This PR solves the issue reported in [this ticket](https://linear.app/n8n/issue/PAY-825/click-to-connect-for-google-sheets-does-not-work-when-cred-is-not). Basically when trying to connect OAuth2 credentials, n8n would create the credential twice, possibly causing transaction issues. This PR prevents n8n from firing a duplicate creation request, effectively fixing the bug about duplicate creation. --- .../src/components/CredentialEdit/GoogleAuthButton.vue | 1 - .../editor-ui/src/components/CredentialEdit/OauthButton.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/CredentialEdit/GoogleAuthButton.vue b/packages/editor-ui/src/components/CredentialEdit/GoogleAuthButton.vue index 38056d0391..309f021e86 100644 --- a/packages/editor-ui/src/components/CredentialEdit/GoogleAuthButton.vue +++ b/packages/editor-ui/src/components/CredentialEdit/GoogleAuthButton.vue @@ -2,7 +2,6 @@