mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(core): fix predefinedCredentialType
in node graph item (#4379)
* 🐛 Fix predefined cred in node graph item * 🔥 Remove logging
This commit is contained in:
parent
d2b97c0713
commit
77233f2370
|
@ -171,13 +171,13 @@ export function generateNodesGraph(
|
|||
} catch (_) {
|
||||
nodeItem.domain = getDomainBase(node.parameters.url as string);
|
||||
}
|
||||
} else if (node.type === 'n8n-nodes-base.httpRequest' && node.typeVersion === 2) {
|
||||
} else if (node.type === 'n8n-nodes-base.httpRequest' && [2, 3].includes(node.typeVersion)) {
|
||||
const { authentication } = node.parameters as { authentication: string };
|
||||
|
||||
nodeItem.credential_type = {
|
||||
none: 'none',
|
||||
genericCredentialType: node.parameters.genericAuthType as string,
|
||||
existingCredentialType: node.parameters.nodeCredentialType as string,
|
||||
predefinedCredentialType: node.parameters.nodeCredentialType as string,
|
||||
}[authentication];
|
||||
|
||||
nodeItem.credential_set = node.credentials
|
||||
|
|
Loading…
Reference in a new issue