Skip to content

Commit

Permalink
fix(editor): Do not throw an error when calculating dynamic inputs/ou…
Browse files Browse the repository at this point in the history
…tputs (no-changelog) (n8n-io#8858)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
  • Loading branch information
OlegIvaniv authored Mar 11, 2024
1 parent 9a564af commit a3a931b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ export class Agent implements INodeType {
name: 'hasOutputParser',
type: 'boolean',
default: false,
noDataExpression: true,
displayOptions: {
hide: {
'@version': [{ _cnd: { lte: 1.2 } }],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export class ChainLlm implements INodeType {
name: 'hasOutputParser',
type: 'boolean',
default: false,
noDataExpression: true,
displayOptions: {
hide: {
'@version': [1, 1.1, 1.3],
Expand Down
9 changes: 3 additions & 6 deletions packages/workflow/src/NodeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,8 @@ export function getNodeInputs(
{},
) || []) as ConnectionTypes[];
} catch (e) {
throw new ApplicationError('Could not calculate inputs dynamically for node', {
extra: { nodeName: node.name },
});
console.warn('Could not calculate inputs dynamically for node: ', node.name);
return [];
}
}

Expand All @@ -1129,9 +1128,7 @@ export function getNodeOutputs(
{},
) || []) as ConnectionTypes[];
} catch (e) {
throw new ApplicationError('Could not calculate outputs dynamically for node', {
extra: { nodeName: node.name },
});
console.warn('Could not calculate outputs dynamically for node: ', node.name);
}
}

Expand Down

0 comments on commit a3a931b

Please sign in to comment.