mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Prevent workflow breaking when credential type is unknown (#6923)
This commit is contained in:
@@ -304,7 +304,7 @@ export default defineComponent({
|
||||
|
||||
// If there is already selected type, use it
|
||||
if (this.selectedCredential !== '') {
|
||||
return this.credentialsStore.getCredentialTypeByName(this.selectedCredential);
|
||||
return this.credentialsStore.getCredentialTypeByName(this.selectedCredential) ?? null;
|
||||
} else if (this.requiredCredentials) {
|
||||
// Otherwise, use credential type that corresponds to the first auth option in the node definition
|
||||
const nodeAuthOptions = getNodeAuthOptions(this.activeNodeType);
|
||||
|
||||
Reference in New Issue
Block a user