mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Remove cloud check when pre-selecting auth options (no-changelog) (#5711)
This commit is contained in:
parent
fb8755ea3c
commit
341bfb810f
|
@ -401,14 +401,12 @@ export const getNodeAuthOptions = (
|
||||||
field.options.map((option) => {
|
field.options.map((option) => {
|
||||||
// Check if credential type associated with this auth option has overwritten properties
|
// Check if credential type associated with this auth option has overwritten properties
|
||||||
let hasOverrides = false;
|
let hasOverrides = false;
|
||||||
if (useSettingsStore().isCloudDeployment) {
|
|
||||||
const cred = getNodeCredentialForSelectedAuthType(nodeType, option.value);
|
const cred = getNodeCredentialForSelectedAuthType(nodeType, option.value);
|
||||||
if (cred) {
|
if (cred) {
|
||||||
hasOverrides =
|
hasOverrides =
|
||||||
useCredentialsStore().getCredentialTypeByName(cred.name).__overwrittenProperties !==
|
useCredentialsStore().getCredentialTypeByName(cred.name).__overwrittenProperties !==
|
||||||
undefined;
|
undefined;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
name:
|
name:
|
||||||
// Add recommended suffix if credentials have overrides and option is not already recommended
|
// Add recommended suffix if credentials have overrides and option is not already recommended
|
||||||
|
|
Loading…
Reference in a new issue