fix(editor): Remove cloud check when pre-selecting auth options (no-changelog) (#5711)

This commit is contained in:
Milorad FIlipović 2023-03-17 15:14:55 +01:00 committed by GitHub
parent fb8755ea3c
commit 341bfb810f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,14 +401,12 @@ export const getNodeAuthOptions = (
field.options.map((option) => {
// Check if credential type associated with this auth option has overwritten properties
let hasOverrides = false;
if (useSettingsStore().isCloudDeployment) {
const cred = getNodeCredentialForSelectedAuthType(nodeType, option.value);
if (cred) {
hasOverrides =
useCredentialsStore().getCredentialTypeByName(cred.name).__overwrittenProperties !==
undefined;
}
}
return {
name:
// Add recommended suffix if credentials have overrides and option is not already recommended