mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(editor): Do not throw an error when calculating dynamic inputs/outputs (no-changelog) (#8858)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
parent
9a564af658
commit
a3a931bdd1
|
@ -285,6 +285,7 @@ export class Agent implements INodeType {
|
|||
name: 'hasOutputParser',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
hide: {
|
||||
'@version': [{ _cnd: { lte: 1.2 } }],
|
||||
|
|
|
@ -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],
|
||||
|
|
|
@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue